Class CfnReceiptRule.LambdaActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ses.CfnReceiptRule.LambdaActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReceiptRule.LambdaActionProperty>
- Enclosing interface:
- CfnReceiptRule.LambdaActionProperty
@Stability(Stable)
public static final class CfnReceiptRule.LambdaActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReceiptRule.LambdaActionProperty>
A builder for
CfnReceiptRule.LambdaActionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.functionArn
(String functionArn) Sets the value ofCfnReceiptRule.LambdaActionProperty.getFunctionArn()
invocationType
(String invocationType) Sets the value ofCfnReceiptRule.LambdaActionProperty.getInvocationType()
Sets the value ofCfnReceiptRule.LambdaActionProperty.getTopicArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
functionArn
@Stability(Stable) public CfnReceiptRule.LambdaActionProperty.Builder functionArn(String functionArn) Sets the value ofCfnReceiptRule.LambdaActionProperty.getFunctionArn()
- Parameters:
functionArn
- The Amazon Resource Name (ARN) of the AWS Lambda function. This parameter is required. An example of an AWS Lambda function ARN isarn:aws:lambda:us-west-2:account-id:function:MyFunction
. For more information about AWS Lambda, see the AWS Lambda Developer Guide .- Returns:
this
-
invocationType
@Stability(Stable) public CfnReceiptRule.LambdaActionProperty.Builder invocationType(String invocationType) Sets the value ofCfnReceiptRule.LambdaActionProperty.getInvocationType()
- Parameters:
invocationType
- The invocation type of the AWS Lambda function. An invocation type ofRequestResponse
means that the execution of the function immediately results in a response, and a value ofEvent
means that the function is invoked asynchronously. The default value isEvent
. For information about AWS Lambda invocation types, see the AWS Lambda Developer Guide .There is a 30-second timeout on
RequestResponse
invocations. You should useEvent
invocation in most cases. UseRequestResponse
only to make a mail flow decision, such as whether to stop the receipt rule or the receipt rule set.- Returns:
this
-
topicArn
Sets the value ofCfnReceiptRule.LambdaActionProperty.getTopicArn()
- Parameters:
topicArn
- The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the Lambda action is executed. You can find the ARN of a topic by using the ListTopics operation in Amazon SNS.For more information about Amazon SNS topics, see the Amazon SNS Developer Guide .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnReceiptRule.LambdaActionProperty>
- Returns:
- a new instance of
CfnReceiptRule.LambdaActionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-