Options
All
  • Public
  • Public/Protected
  • All
Menu

Construction properties for an S3 Bucket object.

Hierarchy

  • BucketProps

Index

Properties

awsPrincipalAccesses?: { principalAccesses: [{ accessType: string; principal: string }] }
optional

A list of AWS principals and access type the bucket to grant principal should be a valid AWS resource principal like for AWS MacieSession it should be macie.amazonaws.com accessType should be any of these possible values BucketAccessType.READONLY, BucketAccessType.WRITEONLY, & and BucketAccessType.READWRITE

Type declaration

  • principalAccesses: [{ accessType: string; principal: string }]
encryptionType: BucketEncryptionType

SSE encryption type for this bucket.

kmsAliasName?: string

The name of the alias.

kmsDescription?: string

A description of the key.

Use a description that helps your users decide whether the key is appropriate for a particular task.

kmsKey?: Key

The ksm key for bucket encryption.

lifecycleRules?: LifecycleRule[]
s3BucketName?: string

Physical name of this bucket.

default
  • Assigned by CloudFormation (recommended).
s3RemovalPolicy?: RemovalPolicy

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

default
  • The bucket will be orphaned.
serverAccessLogsBucket?: IBucket
serverAccessLogsBucketName?: string
serverAccessLogsPrefix?: string

Prefix to use in the target bucket for server access logs.

default
  • name of this bucket

Generated using TypeDoc