@Generated(value="software.amazon.awssdk:codegen") public final class Role extends Object implements ToCopyableBuilder<Role.Builder,Role>
Contains information about an IAM role. This structure is returned as a response element in several APIs that interact with roles.
Modifier and Type | Class and Description |
---|---|
static interface |
Role.Builder |
Modifier and Type | Method and Description |
---|---|
String |
arn()
The Amazon Resource Name (ARN) specifying the role.
|
String |
assumeRolePolicyDocument()
The policy that grants an entity permission to assume the role.
|
static Role.Builder |
builder() |
Instant |
createDate()
The date and time, in ISO 8601 date-time format, when the role was
created.
|
String |
description()
A description of the role that you provide.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
path()
The path to the role.
|
String |
roleId()
The stable and unique string identifying the role.
|
String |
roleName()
The friendly name that identifies the role.
|
static Class<? extends Role.Builder> |
serializableBuilderClass() |
Role.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String path()
The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.
public String roleName()
The friendly name that identifies the role.
public String roleId()
The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the Using IAM guide.
public String arn()
The Amazon Resource Name (ARN) specifying the role. For more information about ARNs and how to use them in policies, see IAM Identifiers in the IAM User Guide guide.
public Instant createDate()
The date and time, in ISO 8601 date-time format, when the role was created.
public String assumeRolePolicyDocument()
The policy that grants an entity permission to assume the role.
public String description()
A description of the role that you provide.
public Role.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Role.Builder,Role>
public static Role.Builder builder()
public static Class<? extends Role.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.