Class CfnEventInvokeConfig.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnEventInvokeConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventInvokeConfig>
- Enclosing class:
CfnEventInvokeConfig
@Stability(Stable)
public static final class CfnEventInvokeConfig.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventInvokeConfig>
A fluent builder for
CfnEventInvokeConfig
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnEventInvokeConfig.Builder
destinationConfig
(IResolvable destinationConfig) A destination for events after they have been sent to a function for processing.destinationConfig
(CfnEventInvokeConfig.DestinationConfigProperty destinationConfig) A destination for events after they have been sent to a function for processing.functionName
(String functionName) The name of the Lambda function.maximumEventAgeInSeconds
(Number maximumEventAgeInSeconds) The maximum age of a request that Lambda sends to a function for processing.maximumRetryAttempts
(Number maximumRetryAttempts) The maximum number of times to retry when the function returns an error.The identifier of a version or alias.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnEventInvokeConfig.Builder
.
-
functionName
The name of the Lambda function.Minimum :
1
Maximum :
64
Pattern :
([a-zA-Z0-9-_]+)
- Parameters:
functionName
- The name of the Lambda function. This parameter is required.- Returns:
this
-
qualifier
The identifier of a version or alias.- Version - A version number.
- Alias - An alias name.
- Latest - To specify the unpublished version, use
$LATEST
.
- Parameters:
qualifier
- The identifier of a version or alias. This parameter is required.- Returns:
this
-
destinationConfig
@Stability(Stable) public CfnEventInvokeConfig.Builder destinationConfig(IResolvable destinationConfig) A destination for events after they have been sent to a function for processing.Destinations - Function - The Amazon Resource Name (ARN) of a Lambda function.
- Queue - The ARN of a standard SQS queue.
- Topic - The ARN of a standard SNS topic.
- Event Bus - The ARN of an Amazon EventBridge event bus.
- Parameters:
destinationConfig
- A destination for events after they have been sent to a function for processing. This parameter is required.- Returns:
this
-
destinationConfig
@Stability(Stable) public CfnEventInvokeConfig.Builder destinationConfig(CfnEventInvokeConfig.DestinationConfigProperty destinationConfig) A destination for events after they have been sent to a function for processing.Destinations - Function - The Amazon Resource Name (ARN) of a Lambda function.
- Queue - The ARN of a standard SQS queue.
- Topic - The ARN of a standard SNS topic.
- Event Bus - The ARN of an Amazon EventBridge event bus.
- Parameters:
destinationConfig
- A destination for events after they have been sent to a function for processing. This parameter is required.- Returns:
this
-
maximumEventAgeInSeconds
@Stability(Stable) public CfnEventInvokeConfig.Builder maximumEventAgeInSeconds(Number maximumEventAgeInSeconds) The maximum age of a request that Lambda sends to a function for processing.- Parameters:
maximumEventAgeInSeconds
- The maximum age of a request that Lambda sends to a function for processing. This parameter is required.- Returns:
this
-
maximumRetryAttempts
@Stability(Stable) public CfnEventInvokeConfig.Builder maximumRetryAttempts(Number maximumRetryAttempts) The maximum number of times to retry when the function returns an error.- Parameters:
maximumRetryAttempts
- The maximum number of times to retry when the function returns an error. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEventInvokeConfig>
- Returns:
- a newly built instance of
CfnEventInvokeConfig
.
-