public static interface PutResourcePolicyRequest.Builder extends XRayRequest.Builder, SdkPojo, CopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>
| Modifier and Type | Method and Description |
|---|---|
PutResourcePolicyRequest.Builder |
bypassPolicyLockoutCheck(Boolean bypassPolicyLockoutCheck)
A flag to indicate whether to bypass the resource policy lockout safety check.
|
PutResourcePolicyRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
PutResourcePolicyRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
PutResourcePolicyRequest.Builder |
policyDocument(String policyDocument)
The resource policy document, which can be up to 5kb in size.
|
PutResourcePolicyRequest.Builder |
policyName(String policyName)
The name of the resource policy.
|
PutResourcePolicyRequest.Builder |
policyRevisionId(String policyRevisionId)
Specifies a specific policy revision, to ensure an atomic create operation.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildPutResourcePolicyRequest.Builder policyName(String policyName)
The name of the resource policy. Must be unique within a specific Amazon Web Services account.
policyName - The name of the resource policy. Must be unique within a specific Amazon Web Services account.PutResourcePolicyRequest.Builder policyDocument(String policyDocument)
The resource policy document, which can be up to 5kb in size.
policyDocument - The resource policy document, which can be up to 5kb in size.PutResourcePolicyRequest.Builder policyRevisionId(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.
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.
PutResourcePolicyRequest.Builder bypassPolicyLockoutCheck(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.
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.
PutResourcePolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderPutResourcePolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.