public static final class LambdaToSqsToLambdaProps.Builder extends Object implements software.amazon.jsii.Builder<LambdaToSqsToLambdaProps>
LambdaToSqsToLambdaProps| Constructor and Description |
|---|
Builder() |
public LambdaToSqsToLambdaProps.Builder consumerLambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps consumerLambdaFunctionProps)
LambdaToSqsToLambdaProps.getConsumerLambdaFunctionProps()consumerLambdaFunctionProps - Optional user-provided properties to override the default properties for the consumer Lambda function.thispublic LambdaToSqsToLambdaProps.Builder deadLetterQueueProps(software.amazon.awscdk.services.sqs.QueueProps deadLetterQueueProps)
LambdaToSqsToLambdaProps.getDeadLetterQueueProps()deadLetterQueueProps - Optional user-provided props to override the default props for the dead letter queue.
Only used if the
deployDeadLetterQueue property is set to true.thispublic LambdaToSqsToLambdaProps.Builder deployDeadLetterQueue(Boolean deployDeadLetterQueue)
LambdaToSqsToLambdaProps.getDeployDeadLetterQueue()deployDeadLetterQueue - Whether to create a secondary queue to be used as a dead letter queue.
Defaults to true.thispublic LambdaToSqsToLambdaProps.Builder deployVpc(Boolean deployVpc)
LambdaToSqsToLambdaProps.getDeployVpc()deployVpc - Whether to deploy a new VPC.thispublic LambdaToSqsToLambdaProps.Builder existingConsumerLambdaObj(software.amazon.awscdk.services.lambda.Function existingConsumerLambdaObj)
LambdaToSqsToLambdaProps.getExistingConsumerLambdaObj()existingConsumerLambdaObj - An optional, existing Lambda function to be used instead of the default function for receiving/consuming messages from the queue.
Providing both this and consumerLambdaFunctionProps will cause an error.thispublic LambdaToSqsToLambdaProps.Builder existingProducerLambdaObj(software.amazon.awscdk.services.lambda.Function existingProducerLambdaObj)
LambdaToSqsToLambdaProps.getExistingProducerLambdaObj()existingProducerLambdaObj - An optional, existing Lambda function to be used instead of the default function for sending messages to the queue.
Providing both this and producerLambdaFunctionProps property will cause an error.thispublic LambdaToSqsToLambdaProps.Builder existingQueueObj(software.amazon.awscdk.services.sqs.Queue existingQueueObj)
LambdaToSqsToLambdaProps.getExistingQueueObj()existingQueueObj - An optional, existing SQS queue to be used instead of the default queue.
Providing both this and queueProps
will cause an error.thispublic LambdaToSqsToLambdaProps.Builder existingVpc(software.amazon.awscdk.services.ec2.IVpc existingVpc)
LambdaToSqsToLambdaProps.getExistingVpc()existingVpc - An existing VPC for the construct to use (construct will NOT create a new VPC in this case).thispublic LambdaToSqsToLambdaProps.Builder maxReceiveCount(Number maxReceiveCount)
LambdaToSqsToLambdaProps.getMaxReceiveCount()maxReceiveCount - The number of times a message can be unsuccessfully dequeued before being moved to the dead letter queue.
Defaults to 15.thispublic LambdaToSqsToLambdaProps.Builder producerLambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps producerLambdaFunctionProps)
LambdaToSqsToLambdaProps.getProducerLambdaFunctionProps()producerLambdaFunctionProps - Optional user-provided properties to override the default properties for the producer Lambda function.thispublic LambdaToSqsToLambdaProps.Builder queueEnvironmentVariableName(String queueEnvironmentVariableName)
LambdaToSqsToLambdaProps.getQueueEnvironmentVariableName()queueEnvironmentVariableName - Optional Name for the SQS queue URL environment variable set for the producer Lambda function.thispublic LambdaToSqsToLambdaProps.Builder queueProps(software.amazon.awscdk.services.sqs.QueueProps queueProps)
LambdaToSqsToLambdaProps.getQueueProps()queueProps - Optional user-provided properties to override the default properties for the SQS queue.thispublic LambdaToSqsToLambdaProps.Builder sqsEventSourceProps(software.amazon.awscdk.services.lambda.eventsources.SqsEventSourceProps sqsEventSourceProps)
LambdaToSqsToLambdaProps.getSqsEventSourceProps()sqsEventSourceProps - Optional user provided properties for the queue event source.thispublic LambdaToSqsToLambdaProps.Builder vpcProps(software.amazon.awscdk.services.ec2.VpcProps vpcProps)
LambdaToSqsToLambdaProps.getVpcProps()vpcProps - Properties to override default properties if deployVpc is true.thispublic LambdaToSqsToLambdaProps build()
build in interface software.amazon.jsii.Builder<LambdaToSqsToLambdaProps>LambdaToSqsToLambdaPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.