Experimental
@aws-cdk/aws-s3tables-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
TablePolicyProps Struct
Parameters for constructing a TablePolicy.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as s3tables_alpha from '@aws-cdk/aws-s3tables-alpha';
import * as cdk from 'aws-cdk-lib';
import { aws_iam as iam } from 'aws-cdk-lib';
declare const policyDocument: iam.PolicyDocument;
declare const table: s3tables_alpha.Table;
const tablePolicyProps: s3tables_alpha.TablePolicyProps = {
table: table,
// the properties below are optional
removalPolicy: cdk.RemovalPolicy.DESTROY,
resourcePolicy: policyDocument,
};
Properties
removalPolicyoptionalRemovalPolicyremoval_policyoptionalRemovalPolicyremovalPolicyoptionalRemovalPolicyRemovalPolicyoptionalRemovalPolicyRemovalPolicyoptionalRemovalPolicy= RemovalPolicy.DESTROY.#Policy to apply when the policy is removed from this stack.
resourcePolicyoptionalPolicyDocumentresource_policyoptionalPolicyDocumentresourcePolicyoptionalPolicyDocumentResourcePolicyoptionalPolicyDocumentResourcePolicyoptionalPolicyDocument#The policy document for the table's resource policy.
Default: undefined An empty iam.PolicyDocument will be initialized