@Generated(value="software.amazon.awssdk:codegen") public final class AssumedRole extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AssumedRole.Builder,AssumedRole>
Provides information about an identity that performed an action on an affected resource by using temporary security credentials. The credentials were obtained using the AssumeRole operation of the AWS Security Token Service (AWS STS) API.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AssumedRole.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
accessKeyId()
The AWS access key ID that identifies the credentials.
|
String |
accountId()
The unique identifier for the AWS account that owns the entity that was used to get the credentials.
|
String |
arn()
The Amazon Resource Name (ARN) of the entity that was used to get the credentials.
|
static AssumedRole.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
principalId()
The unique identifier for the entity that was used to get the credentials.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AssumedRole.Builder> |
serializableBuilderClass() |
SessionContext |
sessionContext()
The details of the session that was created for the credentials, including the entity that issued the session.
|
AssumedRole.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String accessKeyId()
The AWS access key ID that identifies the credentials.
public String accountId()
The unique identifier for the AWS account that owns the entity that was used to get the credentials.
public String arn()
The Amazon Resource Name (ARN) of the entity that was used to get the credentials.
public String principalId()
The unique identifier for the entity that was used to get the credentials.
public SessionContext sessionContext()
The details of the session that was created for the credentials, including the entity that issued the session.
public AssumedRole.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AssumedRole.Builder,AssumedRole>public static AssumedRole.Builder builder()
public static Class<? extends AssumedRole.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.