interface TablePolicyProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.S3Tables.Alpha.TablePolicyProps |
![]() | software.amazon.awscdk.services.s3tables.alpha.TablePolicyProps |
![]() | aws_cdk.aws_s3tables_alpha.TablePolicyProps |
![]() | @aws-cdk/aws-s3tables-alpha ยป TablePolicyProps |
Parameters for constructing a TablePolicy.
Example
// 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
Name | Type | Description |
---|---|---|
table | ITable | The associated table. |
removal | Removal | Policy to apply when the policy is removed from this stack. |
resource | Policy | The policy document for the table's resource policy. |
table
Type:
ITable
The associated table.
removalPolicy?
Type:
Removal
(optional, default: RemovalPolicy.DESTROY.)
Policy to apply when the policy is removed from this stack.
resourcePolicy?
Type:
Policy
(optional, default: undefined An empty iam.PolicyDocument will be initialized)
The policy document for the table's resource policy.