Class CfnTable.ResourcePolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.CfnTable.ResourcePolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTable.ResourcePolicyProperty>
- Enclosing interface:
CfnTable.ResourcePolicyProperty
@Stability(Stable)
public static final class CfnTable.ResourcePolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTable.ResourcePolicyProperty>
A builder for
CfnTable.ResourcePolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.policyDocument(Object policyDocument) Sets the value ofCfnTable.ResourcePolicyProperty.getPolicyDocument()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyDocument
@Stability(Stable) public CfnTable.ResourcePolicyProperty.Builder policyDocument(Object policyDocument) Sets the value ofCfnTable.ResourcePolicyProperty.getPolicyDocument()- Parameters:
policyDocument- A resource-based policy document that contains permissions to add to the specified DynamoDB table, index, or both. This parameter is required. In a CloudFormation template, you can provide the policy in JSON or YAML format because CloudFormation converts YAML to JSON before submitting it to DynamoDB . For more information about resource-based policies, see Using resource-based policies for DynamoDB and Resource-based policy examples .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTable.ResourcePolicyProperty>- Returns:
- a new instance of
CfnTable.ResourcePolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-