Class CfnEventInvokeConfigProps.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnEventInvokeConfigProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventInvokeConfigProps>
- Enclosing interface:
- CfnEventInvokeConfigProps
@Stability(Stable)
public static final class CfnEventInvokeConfigProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventInvokeConfigProps>
A builder for
CfnEventInvokeConfigProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destinationConfig(IResolvable destinationConfig) Sets the value ofCfnEventInvokeConfigProps.getDestinationConfig()destinationConfig(CfnEventInvokeConfig.DestinationConfigProperty destinationConfig) Sets the value ofCfnEventInvokeConfigProps.getDestinationConfig()functionName(String functionName) Sets the value ofCfnEventInvokeConfigProps.getFunctionName()maximumEventAgeInSeconds(Number maximumEventAgeInSeconds) Sets the value ofCfnEventInvokeConfigProps.getMaximumEventAgeInSeconds()maximumRetryAttempts(Number maximumRetryAttempts) Sets the value ofCfnEventInvokeConfigProps.getMaximumRetryAttempts()Sets the value ofCfnEventInvokeConfigProps.getQualifier()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
functionName
Sets the value ofCfnEventInvokeConfigProps.getFunctionName()- Parameters:
functionName- The name of the Lambda function. This parameter is required. Minimum :1Maximum :
64Pattern :
([a-zA-Z0-9-_]+)- Returns:
this
-
qualifier
Sets the value ofCfnEventInvokeConfigProps.getQualifier()- Parameters:
qualifier- The identifier of a version or alias. This parameter is required.- Version - A version number.
- Alias - An alias name.
- Latest - To specify the unpublished version, use
$LATEST.
- Returns:
this
-
destinationConfig
@Stability(Stable) public CfnEventInvokeConfigProps.Builder destinationConfig(IResolvable destinationConfig) Sets the value ofCfnEventInvokeConfigProps.getDestinationConfig()- Parameters:
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.
- Returns:
this
-
destinationConfig
@Stability(Stable) public CfnEventInvokeConfigProps.Builder destinationConfig(CfnEventInvokeConfig.DestinationConfigProperty destinationConfig) Sets the value ofCfnEventInvokeConfigProps.getDestinationConfig()- Parameters:
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.
- Returns:
this
-
maximumEventAgeInSeconds
@Stability(Stable) public CfnEventInvokeConfigProps.Builder maximumEventAgeInSeconds(Number maximumEventAgeInSeconds) Sets the value ofCfnEventInvokeConfigProps.getMaximumEventAgeInSeconds()- Parameters:
maximumEventAgeInSeconds- The maximum age of a request that Lambda sends to a function for processing.- Returns:
this
-
maximumRetryAttempts
@Stability(Stable) public CfnEventInvokeConfigProps.Builder maximumRetryAttempts(Number maximumRetryAttempts) Sets the value ofCfnEventInvokeConfigProps.getMaximumRetryAttempts()- Parameters:
maximumRetryAttempts- The maximum number of times to retry when the function returns an error.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventInvokeConfigProps>- Returns:
- a new instance of
CfnEventInvokeConfigProps - Throws:
NullPointerException- if any required attribute was not provided
-