public class AssumeRoleRequest extends AbstractModel
Constructor and Description |
---|
AssumeRoleRequest() |
AssumeRoleRequest(AssumeRoleRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long |
getDurationSeconds()
Get Specifies the validity period of credentials in seconds.
|
String |
getPolicy()
Get Policy description
Note:
1.
|
String |
getRoleArn()
Get Role resource description, such as qcs::cam::uin/12345678:role/4611686018427397919, qcs::cam::uin/12345678:roleName/testRoleName
|
String |
getRoleSessionName()
Get User-defined temporary session name
|
void |
setDurationSeconds(Long DurationSeconds)
Set Specifies the validity period of credentials in seconds.
|
void |
setPolicy(String Policy)
Set Policy description
Note:
1.
|
void |
setRoleArn(String RoleArn)
Set Role resource description, such as qcs::cam::uin/12345678:role/4611686018427397919, qcs::cam::uin/12345678:roleName/testRoleName
|
void |
setRoleSessionName(String RoleSessionName)
Set User-defined temporary session name
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public AssumeRoleRequest()
public AssumeRoleRequest(AssumeRoleRequest source)
public String getRoleArn()
public void setRoleArn(String RoleArn)
RoleArn
- Role resource description, such as qcs::cam::uin/12345678:role/4611686018427397919, qcs::cam::uin/12345678:roleName/testRoleNamepublic String getRoleSessionName()
public void setRoleSessionName(String RoleSessionName)
RoleSessionName
- User-defined temporary session namepublic Long getDurationSeconds()
public void setDurationSeconds(Long DurationSeconds)
DurationSeconds
- Specifies the validity period of credentials in seconds. Default value: 7200. Maximum value: 43200public String getPolicy()
public void setPolicy(String Policy)
Policy
- Policy description
Note:
1. The policy needs to be URL-encoded (if you request a TencentCloud API through the GET method, all parameters must be URL-encoded again in accordance with [Signature v3](https://cloud.tencent.com/document/api/598/33159#1.-.E6.8B.BC.E6.8E.A5.E8.A7.84.E8.8C.83.E8.AF.B7.E6.B1.82.E4.B8.B2) before the request is sent).
2. For the policy syntax, please see CAM’s [Syntax Logic](https://cloud.tencent.com/document/product/598/10603).
3. The policy cannot contain the `principal` element.Copyright © 2021. All rights reserved.