public class LambdaAction extends Object implements Serializable, Cloneable
When included in a receipt rule, this action calls an AWS Lambda function and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).
To enable Amazon SES to call your AWS Lambda function or to publish to an Amazon SNS topic of another account, Amazon SES must have permission to access those resources. For information about giving permissions, see the Amazon SES Developer Guide .
For information about using AWS Lambda actions in receipt rules, see the Amazon SES Developer Guide .
| Constructor and Description |
|---|
LambdaAction() |
| Modifier and Type | Method and Description |
|---|---|
LambdaAction |
clone() |
boolean |
equals(Object obj) |
String |
getFunctionArn()
The Amazon Resource Name (ARN) of the AWS Lambda function.
|
String |
getInvocationType()
The invocation type of the AWS Lambda function.
|
String |
getTopicArn()
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when
the Lambda action is taken.
|
int |
hashCode() |
void |
setFunctionArn(String functionArn)
The Amazon Resource Name (ARN) of the AWS Lambda function.
|
void |
setInvocationType(InvocationType invocationType)
The invocation type of the AWS Lambda function.
|
void |
setInvocationType(String invocationType)
The invocation type of the AWS Lambda function.
|
void |
setTopicArn(String topicArn)
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when
the Lambda action is taken.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
LambdaAction |
withFunctionArn(String functionArn)
The Amazon Resource Name (ARN) of the AWS Lambda function.
|
LambdaAction |
withInvocationType(InvocationType invocationType)
The invocation type of the AWS Lambda function.
|
LambdaAction |
withInvocationType(String invocationType)
The invocation type of the AWS Lambda function.
|
LambdaAction |
withTopicArn(String topicArn)
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when
the Lambda action is taken.
|
public String getTopicArn()
arn:aws:sns:us-west-2:123456789012:MyTopic. For more
information about Amazon SNS topics, see the Amazon
SNS Developer Guide.arn:aws:sns:us-west-2:123456789012:MyTopic. For more
information about Amazon SNS topics, see the Amazon
SNS Developer Guide.public void setTopicArn(String topicArn)
arn:aws:sns:us-west-2:123456789012:MyTopic. For more
information about Amazon SNS topics, see the Amazon
SNS Developer Guide.topicArn - The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when
the Lambda action is taken. An example of an Amazon SNS topic ARN is
arn:aws:sns:us-west-2:123456789012:MyTopic. For more
information about Amazon SNS topics, see the Amazon
SNS Developer Guide.public LambdaAction withTopicArn(String topicArn)
arn:aws:sns:us-west-2:123456789012:MyTopic. For more
information about Amazon SNS topics, see the Amazon
SNS Developer Guide.
Returns a reference to this object so that method calls can be chained together.
topicArn - The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when
the Lambda action is taken. An example of an Amazon SNS topic ARN is
arn:aws:sns:us-west-2:123456789012:MyTopic. For more
information about Amazon SNS topics, see the Amazon
SNS Developer Guide.public String getFunctionArn()
arn:aws:lambda:us-west-2:account-id:function:MyFunction.
For more information about AWS Lambda, see the AWS
Lambda Developer Guide.arn:aws:lambda:us-west-2:account-id:function:MyFunction.
For more information about AWS Lambda, see the AWS
Lambda Developer Guide.public void setFunctionArn(String functionArn)
arn:aws:lambda:us-west-2:account-id:function:MyFunction.
For more information about AWS Lambda, see the AWS
Lambda Developer Guide.functionArn - The Amazon Resource Name (ARN) of the AWS Lambda function. 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.public LambdaAction withFunctionArn(String functionArn)
arn:aws:lambda:us-west-2:account-id:function:MyFunction.
For more information about AWS Lambda, see the AWS
Lambda Developer Guide.
Returns a reference to this object so that method calls can be chained together.
functionArn - The Amazon Resource Name (ARN) of the AWS Lambda function. 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.public String getInvocationType()
RequestResponse means that the execution of the function
will immediately result in a response, and a value of
Event means that the function will be invoked
asynchronously. The default value is Event. For
information about AWS Lambda invocation types, see the AWS
Lambda Developer Guide. RequestResponse invocations. You should use
Event invocation in most cases. Use
RequestResponse only when you want to make a mail flow
decision, such as whether to stop the receipt rule or the receipt rule
set.
Constraints:
Allowed Values: Event, RequestResponse
RequestResponse means that the execution of the function
will immediately result in a response, and a value of
Event means that the function will be invoked
asynchronously. The default value is Event. For
information about AWS Lambda invocation types, see the AWS
Lambda Developer Guide. RequestResponse invocations. You should use
Event invocation in most cases. Use
RequestResponse only when you want to make a mail flow
decision, such as whether to stop the receipt rule or the receipt rule
set.InvocationTypepublic void setInvocationType(String invocationType)
RequestResponse means that the execution of the function
will immediately result in a response, and a value of
Event means that the function will be invoked
asynchronously. The default value is Event. For
information about AWS Lambda invocation types, see the AWS
Lambda Developer Guide. RequestResponse invocations. You should use
Event invocation in most cases. Use
RequestResponse only when you want to make a mail flow
decision, such as whether to stop the receipt rule or the receipt rule
set.
Constraints:
Allowed Values: Event, RequestResponse
invocationType - The invocation type of the AWS Lambda function. An invocation type of
RequestResponse means that the execution of the function
will immediately result in a response, and a value of
Event means that the function will be invoked
asynchronously. The default value is Event. For
information about AWS Lambda invocation types, see the AWS
Lambda Developer Guide. RequestResponse invocations. You should use
Event invocation in most cases. Use
RequestResponse only when you want to make a mail flow
decision, such as whether to stop the receipt rule or the receipt rule
set.InvocationTypepublic LambdaAction withInvocationType(String invocationType)
RequestResponse means that the execution of the function
will immediately result in a response, and a value of
Event means that the function will be invoked
asynchronously. The default value is Event. For
information about AWS Lambda invocation types, see the AWS
Lambda Developer Guide. RequestResponse invocations. You should use
Event invocation in most cases. Use
RequestResponse only when you want to make a mail flow
decision, such as whether to stop the receipt rule or the receipt rule
set.Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Event, RequestResponse
invocationType - The invocation type of the AWS Lambda function. An invocation type of
RequestResponse means that the execution of the function
will immediately result in a response, and a value of
Event means that the function will be invoked
asynchronously. The default value is Event. For
information about AWS Lambda invocation types, see the AWS
Lambda Developer Guide. RequestResponse invocations. You should use
Event invocation in most cases. Use
RequestResponse only when you want to make a mail flow
decision, such as whether to stop the receipt rule or the receipt rule
set.InvocationTypepublic void setInvocationType(InvocationType invocationType)
RequestResponse means that the execution of the function
will immediately result in a response, and a value of
Event means that the function will be invoked
asynchronously. The default value is Event. For
information about AWS Lambda invocation types, see the AWS
Lambda Developer Guide. RequestResponse invocations. You should use
Event invocation in most cases. Use
RequestResponse only when you want to make a mail flow
decision, such as whether to stop the receipt rule or the receipt rule
set.
Constraints:
Allowed Values: Event, RequestResponse
invocationType - The invocation type of the AWS Lambda function. An invocation type of
RequestResponse means that the execution of the function
will immediately result in a response, and a value of
Event means that the function will be invoked
asynchronously. The default value is Event. For
information about AWS Lambda invocation types, see the AWS
Lambda Developer Guide. RequestResponse invocations. You should use
Event invocation in most cases. Use
RequestResponse only when you want to make a mail flow
decision, such as whether to stop the receipt rule or the receipt rule
set.InvocationTypepublic LambdaAction withInvocationType(InvocationType invocationType)
RequestResponse means that the execution of the function
will immediately result in a response, and a value of
Event means that the function will be invoked
asynchronously. The default value is Event. For
information about AWS Lambda invocation types, see the AWS
Lambda Developer Guide. RequestResponse invocations. You should use
Event invocation in most cases. Use
RequestResponse only when you want to make a mail flow
decision, such as whether to stop the receipt rule or the receipt rule
set.Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Event, RequestResponse
invocationType - The invocation type of the AWS Lambda function. An invocation type of
RequestResponse means that the execution of the function
will immediately result in a response, and a value of
Event means that the function will be invoked
asynchronously. The default value is Event. For
information about AWS Lambda invocation types, see the AWS
Lambda Developer Guide. RequestResponse invocations. You should use
Event invocation in most cases. Use
RequestResponse only when you want to make a mail flow
decision, such as whether to stop the receipt rule or the receipt rule
set.InvocationTypepublic String toString()
toString in class ObjectObject.toString()public LambdaAction clone()
Copyright © 2015. All rights reserved.