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 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 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 might be required when you assume a role in
another account.
|
AssumeRoleRequest |
AssumeRoleRequest.withPolicy(String policy)
An IAM policy in JSON format that you want to use as an inline session
policy.
|
AssumeRoleRequest |
AssumeRoleRequest.withPolicyArns(Collection<PolicyDescriptorType> policyArns)
The Amazon Resource Names (ARNs) of the IAM managed policies that you
want to use as managed session policies.
|
AssumeRoleRequest |
AssumeRoleRequest.withPolicyArns(PolicyDescriptorType... policyArns)
The Amazon Resource Names (ARNs) of the IAM managed policies that you
want to use as managed session policies.
|
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.