Class SnsToLambdaProps.Builder

java.lang.Object
software.amazon.awsconstructs.services.snslambda.SnsToLambdaProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<SnsToLambdaProps>
Enclosing interface:
SnsToLambdaProps

public static final class SnsToLambdaProps.Builder extends Object implements software.amazon.jsii.Builder<SnsToLambdaProps>
A builder for SnsToLambdaProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • enableEncryptionWithCustomerManagedKey

      public SnsToLambdaProps.Builder enableEncryptionWithCustomerManagedKey(Boolean enableEncryptionWithCustomerManagedKey)
      Parameters:
      enableEncryptionWithCustomerManagedKey - If no key is provided, this flag determines whether the SNS Topic is encrypted with a new CMK or an AWS managed key. This flag is ignored if any of the following are defined: topicProps.masterKey, encryptionKey or encryptionKeyProps.
      Returns:
      this
    • encryptionKey

      public SnsToLambdaProps.Builder encryptionKey(software.amazon.awscdk.services.kms.Key encryptionKey)
      Parameters:
      encryptionKey - An optional, imported encryption key to encrypt the SNS Topic with.
      Returns:
      this
    • encryptionKeyProps

      public SnsToLambdaProps.Builder encryptionKeyProps(software.amazon.awscdk.services.kms.KeyProps encryptionKeyProps)
      Parameters:
      encryptionKeyProps - Optional user provided properties to override the default properties for the KMS encryption key used to encrypt the SNS Topic with.
      Returns:
      this
    • existingLambdaObj

      public SnsToLambdaProps.Builder existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj)
      Parameters:
      existingLambdaObj - Existing instance of Lambda Function object, providing both this and lambdaFunctionProps will cause an error.
      Returns:
      this
    • existingTopicObj

      public SnsToLambdaProps.Builder existingTopicObj(software.amazon.awscdk.services.sns.Topic existingTopicObj)
      Parameters:
      existingTopicObj - Existing instance of SNS Topic object, providing both this and topicProps will cause an error..
      Returns:
      this
    • lambdaFunctionProps

      public SnsToLambdaProps.Builder lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps)
      Parameters:
      lambdaFunctionProps - User provided props to override the default props for the Lambda function.
      Returns:
      this
    • topicProps

      public SnsToLambdaProps.Builder topicProps(software.amazon.awscdk.services.sns.TopicProps topicProps)
      Parameters:
      topicProps - Optional user provided properties to override the default properties for the SNS topic.
      Returns:
      this
    • build

      public SnsToLambdaProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<SnsToLambdaProps>
      Returns:
      a new instance of SnsToLambdaProps
      Throws:
      NullPointerException - if any required attribute was not provided