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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.enableEncryptionWithCustomerManagedKey(Boolean enableEncryptionWithCustomerManagedKey) Sets the value ofSnsToLambdaProps.getEnableEncryptionWithCustomerManagedKey()encryptionKey(software.amazon.awscdk.services.kms.Key encryptionKey) Sets the value ofSnsToLambdaProps.getEncryptionKey()encryptionKeyProps(software.amazon.awscdk.services.kms.KeyProps encryptionKeyProps) Sets the value ofSnsToLambdaProps.getEncryptionKeyProps()existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Sets the value ofSnsToLambdaProps.getExistingLambdaObj()existingTopicObj(software.amazon.awscdk.services.sns.Topic existingTopicObj) Sets the value ofSnsToLambdaProps.getExistingTopicObj()lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) Sets the value ofSnsToLambdaProps.getLambdaFunctionProps()topicProps(software.amazon.awscdk.services.sns.TopicProps topicProps) Sets the value ofSnsToLambdaProps.getTopicProps()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enableEncryptionWithCustomerManagedKey
public SnsToLambdaProps.Builder enableEncryptionWithCustomerManagedKey(Boolean enableEncryptionWithCustomerManagedKey) Sets the value ofSnsToLambdaProps.getEnableEncryptionWithCustomerManagedKey()- 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) Sets the value ofSnsToLambdaProps.getEncryptionKey()- 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) Sets the value ofSnsToLambdaProps.getEncryptionKeyProps()- 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) Sets the value ofSnsToLambdaProps.getExistingLambdaObj()- Parameters:
existingLambdaObj- Optional - instance of an existing Lambda Function object, providing both this andlambdaFunctionPropswill cause an error.- Returns:
this
-
existingTopicObj
public SnsToLambdaProps.Builder existingTopicObj(software.amazon.awscdk.services.sns.Topic existingTopicObj) Sets the value ofSnsToLambdaProps.getExistingTopicObj()- Parameters:
existingTopicObj- Optional - existing instance of SNS topic object, providing both this andtopicPropswill cause an error.- Returns:
this
-
lambdaFunctionProps
public SnsToLambdaProps.Builder lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) Sets the value ofSnsToLambdaProps.getLambdaFunctionProps()- Parameters:
lambdaFunctionProps- Optional - user provided props to override the default props for the Lambda function. Providing both this andexistingLambdaObjcauses an error.- Returns:
this
-
topicProps
public SnsToLambdaProps.Builder topicProps(software.amazon.awscdk.services.sns.TopicProps topicProps) Sets the value ofSnsToLambdaProps.getTopicProps()- Parameters:
topicProps- Optional - user provided properties to override the default properties for the SNS topic. Providing both this andexistingTopicObjcauses an error.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SnsToLambdaProps>- Returns:
- a new instance of
SnsToLambdaProps - Throws:
NullPointerException- if any required attribute was not provided
-