@aws-cdk/aws-s3tables-alpha
Version:
CDK Constructs for S3 Tables
44 lines (43 loc) • 1.37 kB
TypeScript
import { Construct } from 'constructs';
import * as iam from 'aws-cdk-lib/aws-iam';
import { RemovalPolicy, Resource } from 'aws-cdk-lib/core';
import { ITable } from './table';
/**
* Parameters for constructing a TablePolicy
*/
export interface TablePolicyProps {
/**
* The associated table
*/
readonly table: ITable;
/**
* The policy document for the table's resource policy
* @default undefined An empty iam.PolicyDocument will be initialized
*/
readonly resourcePolicy?: iam.PolicyDocument;
/**
* Policy to apply when the policy is removed from this stack.
*
* @default - RemovalPolicy.DESTROY.
*/
readonly removalPolicy?: RemovalPolicy;
}
/**
* A Policy for S3 Tables.
*
* You will almost never need to use this construct directly.
* Instead, Table.addToResourcePolicy can be used to add more policies to your table directly
*/
export declare class TablePolicy extends Resource {
/** Uniquely identifies this class. */
static readonly PROPERTY_INJECTION_ID: string;
/**
* The IAM PolicyDocument containing permissions represented by this policy.
*/
readonly document: iam.PolicyDocument;
/**
* @internal The underlying policy resource.
*/
private readonly _resource;
constructor(scope: Construct, id: string, props: TablePolicyProps);
}