Package | Description |
---|---|
com.amazonaws.services.securitytoken |
|
com.amazonaws.services.securitytoken.model |
Classes modeling the various types represented by AWSSecurityTokenService
|
Modifier and Type | Method and Description |
---|---|
AssumeRoleResult |
AWSSecurityTokenServiceClient.assumeRole(AssumeRoleRequest assumeRoleRequest)
Returns a set of temporary security credentials (consisting of an access
key ID, a secret access key, and a security token) that you can use to
access AWS resources that you might not normally have access to.
|
AssumeRoleResult |
AWSSecurityTokenService.assumeRole(AssumeRoleRequest assumeRoleRequest)
Returns a set of temporary security credentials (consisting of an access
key ID, a secret access key, and a security token) that you can use to
access AWS resources that you might not normally have access to.
|
Modifier and Type | Method and Description |
---|---|
AssumeRoleRequest |
AssumeRoleRequest.withDurationSeconds(Integer durationSeconds)
The duration, in seconds, of the role session.
|
AssumeRoleRequest |
AssumeRoleRequest.withExternalId(String externalId)
A unique identifier that is used by third parties when assuming roles in
their customers' accounts.
|
AssumeRoleRequest |
AssumeRoleRequest.withPolicy(String policy)
An IAM policy in JSON format.
|
AssumeRoleRequest |
AssumeRoleRequest.withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role to assume.
|
AssumeRoleRequest |
AssumeRoleRequest.withRoleSessionName(String roleSessionName)
An identifier for the assumed role session.
|
AssumeRoleRequest |
AssumeRoleRequest.withSerialNumber(String serialNumber)
The identification number of the MFA device that is associated with the
user who is making the
AssumeRole call. |
AssumeRoleRequest |
AssumeRoleRequest.withTokenCode(String tokenCode)
The value provided by the MFA device, if the trust policy of the role
being assumed requires MFA (that is, if the policy includes a condition
that tests for MFA).
|
Copyright © 2019. All rights reserved.