public class LambdaAction
extends java.lang.Object
implements java.io.Serializable
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 |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getFunctionArn()
The Amazon Resource Name (ARN) of the AWS Lambda function.
|
java.lang.String |
getInvocationType()
The invocation type of the AWS Lambda function.
|
java.lang.String |
getTopicArn()
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the
Lambda action is taken.
|
int |
hashCode() |
void |
setFunctionArn(java.lang.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(java.lang.String invocationType)
The invocation type of the AWS Lambda function.
|
void |
setTopicArn(java.lang.String topicArn)
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the
Lambda action is taken.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
LambdaAction |
withFunctionArn(java.lang.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(java.lang.String invocationType)
The invocation type of the AWS Lambda function.
|
LambdaAction |
withTopicArn(java.lang.String topicArn)
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the
Lambda action is taken.
|
public java.lang.String getTopicArn()
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.
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 void setTopicArn(java.lang.String 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.
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(java.lang.String 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.
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 java.lang.String getFunctionArn()
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.
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 void setFunctionArn(java.lang.String 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.
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(java.lang.String 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.
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 java.lang.String getInvocationType()
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.
There is a 30-second timeout on 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
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.
There is a 30-second timeout on 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.
InvocationType
public void setInvocationType(java.lang.String 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.
There is a 30-second timeout on 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.
There is a 30-second timeout on 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.
InvocationType
public LambdaAction withInvocationType(java.lang.String 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.
There is a 30-second timeout on 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.
There is a 30-second timeout on 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.
InvocationType
public void setInvocationType(InvocationType 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.
There is a 30-second timeout on 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.
There is a 30-second timeout on 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.
InvocationType
public LambdaAction withInvocationType(InvocationType 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.
There is a 30-second timeout on 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.
There is a 30-second timeout on 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.
InvocationType
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.