@Generated(value="software.amazon.awssdk:codegen") public final class PutResourcePolicyRequest extends XRayRequest implements ToCopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
PutResourcePolicyRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PutResourcePolicyRequest.Builder |
builder() |
Boolean |
bypassPolicyLockoutCheck()
A flag to indicate whether to bypass the resource policy lockout safety check.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
policyDocument()
The resource policy document, which can be up to 5kb in size.
|
String |
policyName()
The name of the resource policy.
|
String |
policyRevisionId()
Specifies a specific policy revision, to ensure an atomic create operation.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PutResourcePolicyRequest.Builder> |
serializableBuilderClass() |
PutResourcePolicyRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String policyName()
The name of the resource policy. Must be unique within a specific Amazon Web Services account.
public final String policyDocument()
The resource policy document, which can be up to 5kb in size.
public final String policyRevisionId()
Specifies a specific policy revision, to ensure an atomic create operation. By default the resource policy is created if it does not exist, or updated with an incremented revision id. The revision id is unique to each policy in the account.
If the policy revision id does not match the latest revision id, the operation will fail with an
InvalidPolicyRevisionIdException exception. You can also provide a PolicyRevisionId of
0. In this case, the operation will fail with an InvalidPolicyRevisionIdException exception if a
resource policy with the same name already exists.
If the policy revision id does not match the latest revision id, the operation will fail with an
InvalidPolicyRevisionIdException exception. You can also provide a
PolicyRevisionId of 0. In this case, the operation will fail with an
InvalidPolicyRevisionIdException exception if a resource policy with the same name already
exists.
public final Boolean bypassPolicyLockoutCheck()
A flag to indicate whether to bypass the resource policy lockout safety check.
Setting this value to true increases the risk that the policy becomes unmanageable. Do not set this value to true indiscriminately.
Use this parameter only when you include a policy in the request and you intend to prevent the principal that is
making the request from making a subsequent PutResourcePolicy request.
The default value is false.
Setting this value to true increases the risk that the policy becomes unmanageable. Do not set this value to true indiscriminately.
Use this parameter only when you include a policy in the request and you intend to prevent the principal
that is making the request from making a subsequent PutResourcePolicy request.
The default value is false.
public PutResourcePolicyRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>toBuilder in class XRayRequestpublic static PutResourcePolicyRequest.Builder builder()
public static Class<? extends PutResourcePolicyRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.