public static final class LambdaToSqsToLambda.Builder extends Object implements software.amazon.jsii.Builder<LambdaToSqsToLambda>
LambdaToSqsToLambda.| Modifier and Type | Method and Description |
|---|---|
LambdaToSqsToLambda |
build() |
LambdaToSqsToLambda.Builder |
consumerLambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps consumerLambdaFunctionProps)
Optional user-provided properties to override the default properties for the consumer Lambda function.
|
static LambdaToSqsToLambda.Builder |
create(software.constructs.Construct scope,
String id) |
LambdaToSqsToLambda.Builder |
deadLetterQueueProps(software.amazon.awscdk.services.sqs.QueueProps deadLetterQueueProps)
Optional user-provided props to override the default props for the dead letter queue.
|
LambdaToSqsToLambda.Builder |
deployDeadLetterQueue(Boolean deployDeadLetterQueue)
Whether to create a secondary queue to be used as a dead letter queue.
|
LambdaToSqsToLambda.Builder |
deployVpc(Boolean deployVpc)
Whether to deploy a new VPC.
|
LambdaToSqsToLambda.Builder |
existingConsumerLambdaObj(software.amazon.awscdk.services.lambda.Function existingConsumerLambdaObj)
An optional, existing Lambda function to be used instead of the default function for receiving/consuming messages from the queue.
|
LambdaToSqsToLambda.Builder |
existingProducerLambdaObj(software.amazon.awscdk.services.lambda.Function existingProducerLambdaObj)
An optional, existing Lambda function to be used instead of the default function for sending messages to the queue.
|
LambdaToSqsToLambda.Builder |
existingQueueObj(software.amazon.awscdk.services.sqs.Queue existingQueueObj)
An optional, existing SQS queue to be used instead of the default queue.
|
LambdaToSqsToLambda.Builder |
existingVpc(software.amazon.awscdk.services.ec2.IVpc existingVpc)
An existing VPC for the construct to use (construct will NOT create a new VPC in this case).
|
LambdaToSqsToLambda.Builder |
maxReceiveCount(Number maxReceiveCount)
The number of times a message can be unsuccessfully dequeued before being moved to the dead letter queue.
|
LambdaToSqsToLambda.Builder |
producerLambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps producerLambdaFunctionProps)
Optional user-provided properties to override the default properties for the producer Lambda function.
|
LambdaToSqsToLambda.Builder |
queueEnvironmentVariableName(String queueEnvironmentVariableName)
Optional Name for the SQS queue URL environment variable set for the producer Lambda function.
|
LambdaToSqsToLambda.Builder |
queueProps(software.amazon.awscdk.services.sqs.QueueProps queueProps)
Optional user-provided properties to override the default properties for the SQS queue.
|
LambdaToSqsToLambda.Builder |
sqsEventSourceProps(software.amazon.awscdk.services.lambda.eventsources.SqsEventSourceProps sqsEventSourceProps)
Optional user provided properties for the queue event source.
|
LambdaToSqsToLambda.Builder |
vpcProps(software.amazon.awscdk.services.ec2.VpcProps vpcProps)
Properties to override default properties if deployVpc is true.
|
public static LambdaToSqsToLambda.Builder create(software.constructs.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.LambdaToSqsToLambda.Builder.public LambdaToSqsToLambda.Builder consumerLambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps consumerLambdaFunctionProps)
Default: - Default properties are used.
consumerLambdaFunctionProps - Optional user-provided properties to override the default properties for the consumer Lambda function. This parameter is required.thispublic LambdaToSqsToLambda.Builder deadLetterQueueProps(software.amazon.awscdk.services.sqs.QueueProps deadLetterQueueProps)
Only used if the
deployDeadLetterQueue property is set to true.
Default: - Default props are used.
deadLetterQueueProps - Optional user-provided props to override the default props for the dead letter queue. This parameter is required.thispublic LambdaToSqsToLambda.Builder deployDeadLetterQueue(Boolean deployDeadLetterQueue)
Defaults to true.
Default: - true.
deployDeadLetterQueue - Whether to create a secondary queue to be used as a dead letter queue. This parameter is required.thispublic LambdaToSqsToLambda.Builder deployVpc(Boolean deployVpc)
Default: - false
deployVpc - Whether to deploy a new VPC. This parameter is required.thispublic LambdaToSqsToLambda.Builder existingConsumerLambdaObj(software.amazon.awscdk.services.lambda.Function existingConsumerLambdaObj)
Providing both this and consumerLambdaFunctionProps will cause an error.
Default: - None.
existingConsumerLambdaObj - An optional, existing Lambda function to be used instead of the default function for receiving/consuming messages from the queue. This parameter is required.thispublic LambdaToSqsToLambda.Builder existingProducerLambdaObj(software.amazon.awscdk.services.lambda.Function existingProducerLambdaObj)
Providing both this and producerLambdaFunctionProps property will cause an error.
Default: - None.
existingProducerLambdaObj - An optional, existing Lambda function to be used instead of the default function for sending messages to the queue. This parameter is required.thispublic LambdaToSqsToLambda.Builder existingQueueObj(software.amazon.awscdk.services.sqs.Queue existingQueueObj)
Providing both this and queueProps
will cause an error.
Default: - None.
existingQueueObj - An optional, existing SQS queue to be used instead of the default queue. This parameter is required.thispublic LambdaToSqsToLambda.Builder existingVpc(software.amazon.awscdk.services.ec2.IVpc existingVpc)
existingVpc - An existing VPC for the construct to use (construct will NOT create a new VPC in this case). This parameter is required.thispublic LambdaToSqsToLambda.Builder maxReceiveCount(Number maxReceiveCount)
Defaults to 15.
Default: - 15.
maxReceiveCount - The number of times a message can be unsuccessfully dequeued before being moved to the dead letter queue. This parameter is required.thispublic LambdaToSqsToLambda.Builder producerLambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps producerLambdaFunctionProps)
Default: - Default properties are used.
producerLambdaFunctionProps - Optional user-provided properties to override the default properties for the producer Lambda function. This parameter is required.thispublic LambdaToSqsToLambda.Builder queueEnvironmentVariableName(String queueEnvironmentVariableName)
Default: - None
queueEnvironmentVariableName - Optional Name for the SQS queue URL environment variable set for the producer Lambda function. This parameter is required.thispublic LambdaToSqsToLambda.Builder queueProps(software.amazon.awscdk.services.sqs.QueueProps queueProps)
Default: - Default props are used.
queueProps - Optional user-provided properties to override the default properties for the SQS queue. This parameter is required.thispublic LambdaToSqsToLambda.Builder sqsEventSourceProps(software.amazon.awscdk.services.lambda.eventsources.SqsEventSourceProps sqsEventSourceProps)
Default: - Default props are used
sqsEventSourceProps - Optional user provided properties for the queue event source. This parameter is required.thispublic LambdaToSqsToLambda.Builder vpcProps(software.amazon.awscdk.services.ec2.VpcProps vpcProps)
vpcProps - Properties to override default properties if deployVpc is true. This parameter is required.thispublic LambdaToSqsToLambda build()
build in interface software.amazon.jsii.Builder<LambdaToSqsToLambda>Copyright © 2022. All rights reserved.