AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::S3Tables::TablePolicy

CfnTablePolicy

Creates 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

import { CfnTablePolicy } from 'aws-cdk-lib/aws-s3tables';

Or use the module namespace:

import * as s3tables from 'aws-cdk-lib/aws-s3tables';
// s3tables.CfnTablePolicy

Properties

Configuration passed to the constructor as CfnTablePolicyProps.

resourcePolicyRequired
any

The `JSON` that defines the policy.

tableArnRequired
string

The Amazon Resource Name (ARN) of the table.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-s3tables
CFN TypeAWS::S3Tables::TablePolicy
Properties2

External Links