public class CreatePolicyRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CreatePolicyRequest() |
CreatePolicyRequest(CreatePolicyRequest 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 |
---|---|
String |
getDescription()
Get Policy description
|
String |
getPolicyDocument()
Get Policy document, such as `{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"]}}]}`, where `principal` is used to specify the resources that the role is authorized to access.
|
String |
getPolicyName()
Get Policy name
|
void |
setDescription(String Description)
Set Policy description
|
void |
setPolicyDocument(String PolicyDocument)
Set Policy document, such as `{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"]}}]}`, where `principal` is used to specify the resources that the role is authorized to access.
|
void |
setPolicyName(String PolicyName)
Set Policy name
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public CreatePolicyRequest()
public CreatePolicyRequest(CreatePolicyRequest source)
public String getPolicyName()
public void setPolicyName(String PolicyName)
PolicyName
- Policy namepublic String getPolicyDocument()
public void setPolicyDocument(String PolicyDocument)
PolicyDocument
- Policy document, such as `{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"]}}]}`, where `principal` is used to specify the resources that the role is authorized to access. For more information on this parameter, please see the `RoleInfo` output parameter of the [GetRole](https://intl.cloud.tencent.com/document/product/598/36221?from_cn_redirect=1) APIpublic String getDescription()
public void setDescription(String Description)
Description
- Policy descriptionCopyright © 2024. All rights reserved.