public static interface CreatePolicyRequest.Builder extends OrganizationsRequest.Builder, CopyableBuilder<CreatePolicyRequest.Builder,CreatePolicyRequest>
Modifier and Type | Method and 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 |
requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
Add an optional request override configuration.
|
CreatePolicyRequest.Builder |
type(PolicyType type)
The type of policy to create.
|
CreatePolicyRequest.Builder |
type(String type)
The type of policy to create.
|
build
requestOverrideConfig, requestOverrideConfig
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
,
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
,
PolicyType
CreatePolicyRequest.Builder requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
awsRequestOverrideConfig
- The override configuration.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.