@Stability(value=Stable) public static final class CfnReceiptRule.LambdaActionProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnReceiptRule.LambdaActionProperty>
CfnReceiptRule.LambdaActionProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnReceiptRule.LambdaActionProperty |
build()
Builds the configured instance.
|
CfnReceiptRule.LambdaActionProperty.Builder |
functionArn(String functionArn)
Sets the value of
CfnReceiptRule.LambdaActionProperty.getFunctionArn() |
CfnReceiptRule.LambdaActionProperty.Builder |
invocationType(String invocationType)
Sets the value of
CfnReceiptRule.LambdaActionProperty.getInvocationType() |
CfnReceiptRule.LambdaActionProperty.Builder |
topicArn(String topicArn)
Sets the value of
CfnReceiptRule.LambdaActionProperty.getTopicArn() |
@Stability(value=Stable) public CfnReceiptRule.LambdaActionProperty.Builder functionArn(String functionArn)
CfnReceiptRule.LambdaActionProperty.getFunctionArn()functionArn - The Amazon Resource Name (ARN) of the AWS Lambda function. This parameter is required.
An example of an AWS Lambda function ARN is arn:aws:lambda:us-west-2:account-id:function:MyFunction . For more information about AWS Lambda, see the AWS Lambda Developer Guide .this@Stability(value=Stable) public CfnReceiptRule.LambdaActionProperty.Builder invocationType(String invocationType)
CfnReceiptRule.LambdaActionProperty.getInvocationType()invocationType - The invocation type of the AWS Lambda function.
An invocation type of RequestResponse means that the execution of the function immediately results in a response, and a value of Event means that the function is invoked asynchronously. The default value is Event . For information about AWS Lambda invocation types, see the AWS Lambda Developer Guide .
There is a 30-second timeout on
RequestResponseinvocations. You should useEventinvocation in most cases. UseRequestResponseonly to make a mail flow decision, such as whether to stop the receipt rule or the receipt rule set.
this@Stability(value=Stable) public CfnReceiptRule.LambdaActionProperty.Builder topicArn(String topicArn)
CfnReceiptRule.LambdaActionProperty.getTopicArn()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 .
this@Stability(value=Stable) public CfnReceiptRule.LambdaActionProperty build()
build in interface software.amazon.jsii.Builder<CfnReceiptRule.LambdaActionProperty>CfnReceiptRule.LambdaActionPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.