BucketPolicyProps

class aws_cdk.aws_s3.BucketPolicyProps(*, bucket, removal_policy=None)

Bases: object

Parameters
  • bucket (IBucket) – The Amazon S3 bucket that the policy applies to.

  • removal_policy (Optional[RemovalPolicy]) – Policy to apply when the policy is removed from this stack. Default: - RemovalPolicy.DESTROY.

Attributes

bucket

The Amazon S3 bucket that the policy applies to.

Return type

IBucket

removal_policy

Policy to apply when the policy is removed from this stack.

Default
  • RemovalPolicy.DESTROY.

Return type

Optional[RemovalPolicy]