Struct aws_sdk_ses::types::LambdaAction
source · #[non_exhaustive]pub struct LambdaAction {
pub topic_arn: Option<String>,
pub function_arn: String,
pub invocation_type: Option<InvocationType>,
}
Expand description
When included in a receipt rule, this action calls an Amazon Web Services Lambda function and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).
To enable Amazon SES to call your Amazon Web Services 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 Amazon Web Services Lambda actions in receipt rules, see the Amazon SES Developer Guide.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.topic_arn: Option<String>
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.
function_arn: String
The Amazon Resource Name (ARN) of the Amazon Web Services Lambda function. An example of an Amazon Web Services Lambda function ARN is arn:aws:lambda:us-west-2:account-id:function:MyFunction
. For more information about Amazon Web Services Lambda, see the Amazon Web Services Lambda Developer Guide.
invocation_type: Option<InvocationType>
The invocation type of the Amazon Web Services 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 Amazon Web Services Lambda invocation types, see the Amazon Web Services Lambda Developer Guide.
There is a 30-second timeout on RequestResponse
invocations. You should use Event
invocation in most cases. Use RequestResponse
only to make a mail flow decision, such as whether to stop the receipt rule or the receipt rule set.
Implementations§
source§impl LambdaAction
impl LambdaAction
sourcepub fn topic_arn(&self) -> Option<&str>
pub fn topic_arn(&self) -> Option<&str>
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.
sourcepub fn function_arn(&self) -> &str
pub fn function_arn(&self) -> &str
The Amazon Resource Name (ARN) of the Amazon Web Services Lambda function. An example of an Amazon Web Services Lambda function ARN is arn:aws:lambda:us-west-2:account-id:function:MyFunction
. For more information about Amazon Web Services Lambda, see the Amazon Web Services Lambda Developer Guide.
sourcepub fn invocation_type(&self) -> Option<&InvocationType>
pub fn invocation_type(&self) -> Option<&InvocationType>
The invocation type of the Amazon Web Services 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 Amazon Web Services Lambda invocation types, see the Amazon Web Services Lambda Developer Guide.
There is a 30-second timeout on RequestResponse
invocations. You should use Event
invocation in most cases. Use RequestResponse
only to make a mail flow decision, such as whether to stop the receipt rule or the receipt rule set.
source§impl LambdaAction
impl LambdaAction
sourcepub fn builder() -> LambdaActionBuilder
pub fn builder() -> LambdaActionBuilder
Creates a new builder-style object to manufacture LambdaAction
.
Trait Implementations§
source§impl Clone for LambdaAction
impl Clone for LambdaAction
source§fn clone(&self) -> LambdaAction
fn clone(&self) -> LambdaAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LambdaAction
impl Debug for LambdaAction
source§impl PartialEq for LambdaAction
impl PartialEq for LambdaAction
source§fn eq(&self, other: &LambdaAction) -> bool
fn eq(&self, other: &LambdaAction) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LambdaAction
Auto Trait Implementations§
impl Freeze for LambdaAction
impl RefUnwindSafe for LambdaAction
impl Send for LambdaAction
impl Sync for LambdaAction
impl Unpin for LambdaAction
impl UnwindSafe for LambdaAction
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more