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 Details

    • create

      @Stability(Stable) public static CfnEventInvokeConfig.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnEventInvokeConfig.Builder.
    • functionName

      @Stability(Stable) public CfnEventInvokeConfig.Builder functionName(String 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

      @Stability(Stable) public CfnEventInvokeConfig.Builder qualifier(String 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

      @Stability(Stable) public CfnEventInvokeConfig build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnEventInvokeConfig>
      Returns:
      a newly built instance of CfnEventInvokeConfig.