public static final class AssumeRoleWithSAMLRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
AssumeRoleWithSAMLRequest |
build() |
AssumeRoleWithSAMLRequest.Builder |
durationSeconds(Long durationSeconds)
The validity period of the STS token.
|
AssumeRoleWithSAMLRequest.Builder |
policy(String policy)
The policy that specifies the permissions of the returned STS token.
|
AssumeRoleWithSAMLRequest.Builder |
roleArn(String roleArn)
The ARN of the RAM role.
|
AssumeRoleWithSAMLRequest.Builder |
SAMLAssertion(String SAMLAssertion)
The Base64-encoded SAML assertion.
|
AssumeRoleWithSAMLRequest.Builder |
SAMLProviderArn(String SAMLProviderArn)
The Alibaba Cloud Resource Name (ARN) of the SAML IdP that is created in the RAM console.
|
public AssumeRoleWithSAMLRequest.Builder durationSeconds(Long durationSeconds)
Minimum value: 900. Maximum value: the value of the `MaxSessionDuration` parameter. Default value: 3600. You can call the CreateRole or UpdateRole operation to configure the `MaxSessionDuration` parameter. For more information, see [CreateRole](~~28710~~) or [UpdateRole](~~28712~~).
public AssumeRoleWithSAMLRequest.Builder policy(String policy)
* If you specify this parameter, the permissions of the returned STS token are the permissions that are included in the value of this parameter and owned by the RAM role. * If you do not specify this parameter, the returned STS token has all the permissions of the RAM role. The value must be 1 to 2,048 characters in length.
public AssumeRoleWithSAMLRequest.Builder roleArn(String roleArn)
The trust entity of the RAM role is a SAML IdP. For more information, see [Create a RAM role for a trusted IdP](~~116805~~) or [CreateRole](~~28710~~).
Format: `acs:ram::
public AssumeRoleWithSAMLRequest.Builder SAMLAssertion(String SAMLAssertion)
The value must be 4 to 100,000 characters in length. > A complete SAML response rather than a single SAMLAssertion field must be retrieved from the external IdP.
public AssumeRoleWithSAMLRequest.Builder SAMLProviderArn(String SAMLProviderArn)
Format: `acs:ram::
public AssumeRoleWithSAMLRequest build()
Copyright © 2023. All rights reserved.