java.lang.Object
software.amazon.awscdk.services.ses.actions.S3.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<S3>
Enclosing class:
S3

@Stability(Stable) public static final class S3.Builder extends Object implements software.amazon.jsii.Builder<S3>
A fluent builder for S3.
  • Method Details

    • create

      @Stability(Stable) public static S3.Builder create()
      Returns:
      a new instance of S3.Builder.
    • bucket

      @Stability(Stable) public S3.Builder bucket(IBucket bucket)
      The S3 bucket that incoming email will be saved to.

      Parameters:
      bucket - The S3 bucket that incoming email will be saved to. This parameter is required.
      Returns:
      this
    • kmsKey

      @Stability(Stable) public S3.Builder kmsKey(IKey kmsKey)
      The master key that SES should use to encrypt your emails before saving them to the S3 bucket.

      Default: no encryption

      Parameters:
      kmsKey - The master key that SES should use to encrypt your emails before saving them to the S3 bucket. This parameter is required.
      Returns:
      this
    • objectKeyPrefix

      @Stability(Stable) public S3.Builder objectKeyPrefix(String objectKeyPrefix)
      The key prefix of the S3 bucket.

      Default: no prefix

      Parameters:
      objectKeyPrefix - The key prefix of the S3 bucket. This parameter is required.
      Returns:
      this
    • topic

      @Stability(Stable) public S3.Builder topic(ITopic topic)
      The SNS topic to notify when the S3 action is taken.

      Default: no notification

      Parameters:
      topic - The SNS topic to notify when the S3 action is taken. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public S3 build()
      Specified by:
      build in interface software.amazon.jsii.Builder<S3>
      Returns:
      a newly built instance of S3.