AWS::S3Tables::TablePolicyCreates a new maintenance configuration or replaces an existing table policy for a table. For more information, see [Adding a table policy](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-table-policy.html#table-policy-add) in the *Amazon Simple Storage Service User Guide* . - **Permissions** - You must have the `s3tables:PutTablePolicy` permission to use this operation. - **Cloud Development Kit** - To use S3 Tables AWS CDK constructs, add the `@aws-cdk/aws-s3tables-alpha` dependency with one of the following options: - NPM: `npm i
import { CfnTablePolicy } from 'aws-cdk-lib/aws-s3tables';Or use the module namespace:
import * as s3tables from 'aws-cdk-lib/aws-s3tables';
// s3tables.CfnTablePolicyConfiguration passed to the constructor as CfnTablePolicyProps.
resourcePolicyRequiredanyThe `JSON` that defines the policy.
tableArnRequiredstringThe Amazon Resource Name (ARN) of the table.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-s3tablesAWS::S3Tables::TablePolicy