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