Class CfnTablePropsMixin.ResourcePolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.dynamodb.CfnTablePropsMixin.ResourcePolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTablePropsMixin.ResourcePolicyProperty>
- Enclosing interface:
CfnTablePropsMixin.ResourcePolicyProperty
@Stability(Stable)
public static final class CfnTablePropsMixin.ResourcePolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTablePropsMixin.ResourcePolicyProperty>
A builder for
CfnTablePropsMixin.ResourcePolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.policyDocument(Object policyDocument) Sets the value ofCfnTablePropsMixin.ResourcePolicyProperty.getPolicyDocument()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyDocument
@Stability(Stable) public CfnTablePropsMixin.ResourcePolicyProperty.Builder policyDocument(Object policyDocument) Sets the value ofCfnTablePropsMixin.ResourcePolicyProperty.getPolicyDocument()- Parameters:
policyDocument- A resource-based policy document that contains permissions to add to the specified DynamoDB table, index, or both. 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<CfnTablePropsMixin.ResourcePolicyProperty>- Returns:
- a new instance of
CfnTablePropsMixin.ResourcePolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-