public static final class SnsToLambda.Builder extends Object implements software.amazon.jsii.Builder<SnsToLambda>
SnsToLambda.| Modifier and Type | Method and Description |
|---|---|
SnsToLambda |
build() |
static SnsToLambda.Builder |
create(software.amazon.awscdk.core.Construct scope,
String id) |
SnsToLambda.Builder |
deployLambda(Boolean deployLambda)
Whether to create a new Lambda function or use an existing Lambda function.
|
SnsToLambda.Builder |
enableEncryption(Boolean enableEncryption)
Use a KMS Key, either managed by this CDK app, or imported.
|
SnsToLambda.Builder |
encryptionKey(software.amazon.awscdk.services.kms.Key encryptionKey)
An optional, imported encryption key to encrypt the SNS topic with.
|
SnsToLambda.Builder |
existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj)
Existing instance of Lambda Function object.
|
SnsToLambda.Builder |
lambdaFunctionProps(Object lambdaFunctionProps)
Optional user provided properties to override the default properties for the Lambda function.
|
SnsToLambda.Builder |
topicProps(Object topicProps)
Optional user provided properties to override the default properties for the SNS topic.
|
public static SnsToLambda.Builder create(software.amazon.awscdk.core.Construct scope, String id)
scope - - represents the scope for all the resources. This parameter is required.id - - this is a a scope-unique id. This parameter is required.SnsToLambda.Builder.public SnsToLambda.Builder deployLambda(Boolean deployLambda)
If set to false, you must provide an existing function for the existingLambdaObj property.
Default: - true
deployLambda - Whether to create a new Lambda function or use an existing Lambda function. This parameter is required.thispublic SnsToLambda.Builder enableEncryption(Boolean enableEncryption)
If importing an encryption key, it must be specified in the encryptionKey property for this construct.
Default: - true (encryption enabled, managed by this CDK app).
enableEncryption - Use a KMS Key, either managed by this CDK app, or imported. This parameter is required.thispublic SnsToLambda.Builder encryptionKey(software.amazon.awscdk.services.kms.Key encryptionKey)
Default: - not specified.
encryptionKey - An optional, imported encryption key to encrypt the SNS topic with. This parameter is required.thispublic SnsToLambda.Builder existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj)
If deploy is set to false only then this property is required
Default: - None
existingLambdaObj - Existing instance of Lambda Function object. This parameter is required.thispublic SnsToLambda.Builder lambdaFunctionProps(Object lambdaFunctionProps)
If deploy is set to true only then this property is required.
Default: - Default properties are used.
lambdaFunctionProps - Optional user provided properties to override the default properties for the Lambda function. This parameter is required.thispublic SnsToLambda.Builder topicProps(Object topicProps)
Default: - Default properties are used.
topicProps - Optional user provided properties to override the default properties for the SNS topic. This parameter is required.thispublic SnsToLambda build()
build in interface software.amazon.jsii.Builder<SnsToLambda>Copyright © 2020. All rights reserved.