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 |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreatePolicyRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
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
overrideConfiguration
copy
applyMutation, 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 overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreatePolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.