public static final class CreateControlPolicyRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateControlPolicyRequest |
build() |
CreateControlPolicyRequest.Builder |
description(String description)
The description of the access control policy.
|
CreateControlPolicyRequest.Builder |
effectScope(String effectScope)
The effective scope of the access control policy.
|
CreateControlPolicyRequest.Builder |
policyDocument(String policyDocument)
The document of the access control policy.
|
CreateControlPolicyRequest.Builder |
policyName(String policyName)
The name of the access control policy.
|
public CreateControlPolicyRequest.Builder description(String description)
The description must be 1 to 1,024 characters in length. The description can contain letters, digits, underscores (\_), and hyphens (-) and must start with a letter.
public CreateControlPolicyRequest.Builder effectScope(String effectScope)
The value RAM indicates that the access control policy takes effect only for RAM users and RAM roles.
public CreateControlPolicyRequest.Builder policyDocument(String policyDocument)
The document can be a maximum of 4,096 characters in length. For more information about the languages of access control policies, see [Languages of access control policies](~~179096~~). For more information about the examples of access control policies, see [Examples of custom access control policies](~~181474~~).
public CreateControlPolicyRequest.Builder policyName(String policyName)
The name must be 1 to 128 characters in length. The name can contain letters, digits, and hyphens (-) and must start with a letter.
public CreateControlPolicyRequest build()
Copyright © 2023. All rights reserved.