Cloneable, ReadLimitInfo, ToCopyableBuilder<CreatePolicyRequest.Builder,CreatePolicyRequest>@Generated("software.amazon.awssdk:codegen") public class CreatePolicyRequest extends AmazonWebServiceRequest implements ToCopyableBuilder<CreatePolicyRequest.Builder,CreatePolicyRequest>
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
CreatePolicyRequest.Builder |
NOOP| Modifier and Type | Method | Description |
|---|---|---|
static CreatePolicyRequest.Builder |
builder() |
|
String |
content() |
The policy content to add to the new policy.
|
String |
description() |
An optional description to assign to the policy.
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
String |
name() |
The friendly name to assign to the policy.
|
static Class<? extends CreatePolicyRequest.Builder> |
serializableBuilderClass() |
|
CreatePolicyRequest.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
|
String |
type() |
The type of policy to create.
|
clone, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeoutpublic 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.
public String description()
An optional description to assign to the policy.
public 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.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
public 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).
In the current release, the only type of policy that you can create is a service control policy (SCP).
PolicyTypepublic CreatePolicyRequest.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<CreatePolicyRequest.Builder,CreatePolicyRequest>public static CreatePolicyRequest.Builder builder()
public static Class<? extends CreatePolicyRequest.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.