public class AssumeRoleWithSAMLRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
Long |
durationSeconds
The validity period of the STS token.
|
String |
policy
The policy that specifies the permissions of the returned STS token.
|
String |
roleArn
The ARN of the RAM role.
|
String |
SAMLAssertion
The Base64-encoded SAML assertion.
|
String |
SAMLProviderArn
The Alibaba Cloud Resource Name (ARN) of the SAML IdP that is created in the RAM console.
|
| 构造器和说明 |
|---|
AssumeRoleWithSAMLRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static AssumeRoleWithSAMLRequest |
build(Map<String,?> map) |
Long |
getDurationSeconds() |
String |
getPolicy() |
String |
getRoleArn() |
String |
getSAMLAssertion() |
String |
getSAMLProviderArn() |
AssumeRoleWithSAMLRequest |
setDurationSeconds(Long durationSeconds) |
AssumeRoleWithSAMLRequest |
setPolicy(String policy) |
AssumeRoleWithSAMLRequest |
setRoleArn(String roleArn) |
AssumeRoleWithSAMLRequest |
setSAMLAssertion(String SAMLAssertion) |
AssumeRoleWithSAMLRequest |
setSAMLProviderArn(String SAMLProviderArn) |
@NameInMap(value="DurationSeconds") public Long durationSeconds
The validity period of the STS token. Unit: seconds.
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 or UpdateRole.
3600
@NameInMap(value="Policy") public String policy
The policy that specifies the permissions of the returned STS token. You can use this parameter to grant the STS token fewer permissions than the permissions granted to the RAM role.
The value must be 1 to 2,048 characters in length.
example:url_encoded_policy
@NameInMap(value="RoleArn") public String roleArn
The ARN of the RAM role.
The trust entity of the RAM role is a SAML IdP. For more information, see Create a RAM role for a trusted IdP or CreateRole.
Format: acs:ram::<account_id>:role/<role_name>.
You can view the ARN in the RAM console or by calling operations.
acs:ram::123456789012****:role/adminrole
@NameInMap(value="SAMLAssertion") public String SAMLAssertion
The Base64-encoded SAML assertion.
The value must be 4 to 100,000 characters in length.
example:A complete SAML response rather than a single SAMLAssertion field must be retrieved from the external IdP.
base64_encoded_saml_assertion
@NameInMap(value="SAMLProviderArn") public String SAMLProviderArn
The Alibaba Cloud Resource Name (ARN) of the SAML IdP that is created in the RAM console.
Format: acs:ram::<account_id>:saml-provider/<saml_provider_id>.
You can view the ARN in the RAM console or by calling operations.
acs:ram::123456789012****:saml-provider/company1
public static AssumeRoleWithSAMLRequest build(Map<String,?> map) throws Exception
Exceptionpublic AssumeRoleWithSAMLRequest setDurationSeconds(Long durationSeconds)
public Long getDurationSeconds()
public AssumeRoleWithSAMLRequest setPolicy(String policy)
public String getPolicy()
public AssumeRoleWithSAMLRequest setRoleArn(String roleArn)
public String getRoleArn()
public AssumeRoleWithSAMLRequest setSAMLAssertion(String SAMLAssertion)
public String getSAMLAssertion()
public AssumeRoleWithSAMLRequest setSAMLProviderArn(String SAMLProviderArn)
public String getSAMLProviderArn()
Copyright © 2025. All rights reserved.