Class PutResourcePolicyRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final BooleanSet this parameter totrueto confirm that you want to remove your permissions to change the policy of this resource in the future.final booleanfinal booleanequalsBySdkFields(Object obj) final StringA string value that you can use to conditionally update your policy.final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringpolicy()An Amazon Web Services resource-based policy document in JSON format.final StringThe Amazon Resource Name (ARN) of the DynamoDB resource to which the policy will be attached.static Class<? extends PutResourcePolicyRequest.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
resourceArn
The Amazon Resource Name (ARN) of the DynamoDB resource to which the policy will be attached. The resources you can specify include tables and streams.
You can control index permissions using the base table's policy. To specify the same permission level for your table and its indexes, you can provide both the table and index Amazon Resource Name (ARN)s in the
Resourcefield of a givenStatementin your policy document. Alternatively, to specify different permissions for your table, indexes, or both, you can define multipleStatementfields in your policy document.- Returns:
- The Amazon Resource Name (ARN) of the DynamoDB resource to which the policy will be attached. The
resources you can specify include tables and streams.
You can control index permissions using the base table's policy. To specify the same permission level for your table and its indexes, you can provide both the table and index Amazon Resource Name (ARN)s in the
Resourcefield of a givenStatementin your policy document. Alternatively, to specify different permissions for your table, indexes, or both, you can define multipleStatementfields in your policy document.
-
policy
An Amazon Web Services resource-based policy document in JSON format.
-
The maximum size supported for a resource-based policy document is 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against this limit.
-
Within a resource-based policy, if the action for a DynamoDB service-linked role (SLR) to replicate data for a global table is denied, adding or deleting a replica will fail with an error.
For a full list of all considerations that apply while attaching a resource-based policy, see Resource-based policy considerations.
- Returns:
- An Amazon Web Services resource-based policy document in JSON format.
-
The maximum size supported for a resource-based policy document is 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against this limit.
-
Within a resource-based policy, if the action for a DynamoDB service-linked role (SLR) to replicate data for a global table is denied, adding or deleting a replica will fail with an error.
For a full list of all considerations that apply while attaching a resource-based policy, see Resource-based policy considerations.
-
-
-
expectedRevisionId
A string value that you can use to conditionally update your policy. You can provide the revision ID of your existing policy to make mutating requests against that policy.
When you provide an expected revision ID, if the revision ID of the existing policy on the resource doesn't match or if there's no policy attached to the resource, your request will be rejected with a
PolicyNotFoundException.To conditionally attach a policy when no policy exists for the resource, specify
NO_POLICYfor the revision ID.- Returns:
- A string value that you can use to conditionally update your policy. You can provide the revision ID of
your existing policy to make mutating requests against that policy.
When you provide an expected revision ID, if the revision ID of the existing policy on the resource doesn't match or if there's no policy attached to the resource, your request will be rejected with a
PolicyNotFoundException.To conditionally attach a policy when no policy exists for the resource, specify
NO_POLICYfor the revision ID.
-
confirmRemoveSelfResourceAccess
Set this parameter to
trueto confirm that you want to remove your permissions to change the policy of this resource in the future.- Returns:
- Set this parameter to
trueto confirm that you want to remove your permissions to change the policy of this resource in the future.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest> - Specified by:
toBuilderin classDynamoDbRequest
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-