aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
19 lines (18 loc) • 692 B
TypeScript
import type { IConstruct } from 'constructs';
import type { PolicyStatement } from '../../../aws-iam';
import { Mixin } from '../../../core/lib/mixins';
import { CfnBucketPolicy } from '../s3.generated';
/**
* Adds statements to a bucket policy.
*/
export declare class BucketPolicyStatements extends Mixin {
private readonly statements;
constructor(statements: PolicyStatement[]);
supports(construct: IConstruct): construct is CfnBucketPolicy;
applyTo(policy: IConstruct): void;
/**
* CfnBucketPolicy.policyDocument sometimes is a PolicyDocument object
* and sometimes is a plain object. We need to handle both cases.
*/
private getPolicyDocument;
}