Defines a Secure S3 Bucket object. By default a KMS CMK is generated and associated to the bucket.

Hierarchy

  • Construct
    • Bucket

Constructors

  • Parameters

    Returns Bucket

Properties

bucket: Bucket
cmk?: Key
encryptionType: BucketEncryption = s3.BucketEncryption.KMS

Bucket encryption type set to a default value of BucketEncryption.KMS, which will be determined later based on other properties

lifecycleRules: LifecycleRule[] = []
node: Node

The tree node.

Stability

stable

serverAccessLogBucket: undefined | IBucket
serverAccessLogsPrefix: undefined | string

Methods

  • Returns string[]

  • Returns Key

  • Returns IBucket

  • Set Server access log bucket property

    Returns void

  • Function to set bucket encryption type

    Returns void

  • Returns void

  • Returns a string representation of this construct.

    Stability

    stable

    Returns string

  • (deprecated) Checks if x is a construct.

    Returns

    true if x is an object created from a class which extends Construct.

    Deprecated

    use x instanceof Construct instead

    Parameters

    • x: any

      Any object.

    Returns x is Construct

Generated using TypeDoc