CopyableBuilder<CreatePolicyRequest.Builder,CreatePolicyRequest>
, SdkBuilder<CreatePolicyRequest.Builder,CreatePolicyRequest>
public static interface CreatePolicyRequest.Builder extends CopyableBuilder<CreatePolicyRequest.Builder,CreatePolicyRequest>
Modifier and Type | Method | Description |
---|---|---|
CreatePolicyRequest.Builder |
content(String content) |
The policy content to add to the new policy.
|
CreatePolicyRequest.Builder |
description(String description) |
An optional description to assign to the policy.
|
CreatePolicyRequest.Builder |
name(String name) |
The friendly name to assign to the policy.
|
CreatePolicyRequest.Builder |
type(String type) |
The type of policy to create.
|
CreatePolicyRequest.Builder |
type(PolicyType type) |
The type of policy to create.
|
copy
apply, build
CreatePolicyRequest.Builder content(String content)
The policy content to add to the new policy. For example, if you create a service control policy (SCP), this string must be JSON text that specifies the permissions that admins in attached accounts can delegate to their users, groups, and roles. For more information about the SCP syntax, see Service Control Policy Syntax in the AWS Organizations User Guide.
content
- The policy content to add to the new policy. For example, if you create a service
control policy (SCP), this string must be JSON text that specifies the permissions that admins in
attached accounts can delegate to their users, groups, and roles. For more information about the SCP
syntax, see Service Control Policy Syntax in the AWS Organizations User Guide.CreatePolicyRequest.Builder description(String description)
An optional description to assign to the policy.
description
- An optional description to assign to the policy.CreatePolicyRequest.Builder name(String name)
The friendly name to assign to the policy.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
name
- The friendly name to assign to the policy.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
CreatePolicyRequest.Builder type(String type)
The type of policy to create.
In the current release, the only type of policy that you can create is a service control policy (SCP).
type
- The type of policy to create. In the current release, the only type of policy that you can create is a service control policy (SCP).
PolicyType
CreatePolicyRequest.Builder type(PolicyType type)
The type of policy to create.
In the current release, the only type of policy that you can create is a service control policy (SCP).
type
- The type of policy to create. In the current release, the only type of policy that you can create is a service control policy (SCP).
PolicyType
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.