Struct aws_sdk_s3control::types::LambdaInvokeOperation
source · #[non_exhaustive]pub struct LambdaInvokeOperation {
pub function_arn: Option<String>,
pub invocation_schema_version: Option<String>,
pub user_arguments: Option<HashMap<String, String>>,
}
Expand description
Contains the configuration parameters for a Lambda Invoke
operation.
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.function_arn: Option<String>
The Amazon Resource Name (ARN) for the Lambda function that the specified job will invoke on every object in the manifest.
invocation_schema_version: Option<String>
Specifies the schema version for the payload that Batch Operations sends when invoking an Lambda function. Version 1.0
is the default. Version 2.0
is required when you use Batch Operations to invoke Lambda functions that act on directory buckets, or if you need to specify UserArguments
. For more information, see Automate object processing in Amazon S3 directory buckets with S3 Batch Operations and Lambda in the Amazon Web Services Storage Blog.
Ensure that your Lambda function code expects InvocationSchemaVersion
2.0 and uses bucket name rather than bucket ARN. If the InvocationSchemaVersion
does not match what your Lambda function expects, your function might not work as expected.
Directory buckets - To initiate Amazon Web Services Lambda function to perform custom actions on objects in directory buckets, you must specify 2.0
.
user_arguments: Option<HashMap<String, String>>
Key-value pairs that are passed in the payload that Batch Operations sends when invoking an Lambda function. You must specify InvocationSchemaVersion
2.0 for LambdaInvoke
operations that include UserArguments
. For more information, see Automate object processing in Amazon S3 directory buckets with S3 Batch Operations and Lambda in the Amazon Web Services Storage Blog.
Implementations§
source§impl LambdaInvokeOperation
impl LambdaInvokeOperation
sourcepub fn function_arn(&self) -> Option<&str>
pub fn function_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) for the Lambda function that the specified job will invoke on every object in the manifest.
sourcepub fn invocation_schema_version(&self) -> Option<&str>
pub fn invocation_schema_version(&self) -> Option<&str>
Specifies the schema version for the payload that Batch Operations sends when invoking an Lambda function. Version 1.0
is the default. Version 2.0
is required when you use Batch Operations to invoke Lambda functions that act on directory buckets, or if you need to specify UserArguments
. For more information, see Automate object processing in Amazon S3 directory buckets with S3 Batch Operations and Lambda in the Amazon Web Services Storage Blog.
Ensure that your Lambda function code expects InvocationSchemaVersion
2.0 and uses bucket name rather than bucket ARN. If the InvocationSchemaVersion
does not match what your Lambda function expects, your function might not work as expected.
Directory buckets - To initiate Amazon Web Services Lambda function to perform custom actions on objects in directory buckets, you must specify 2.0
.
sourcepub fn user_arguments(&self) -> Option<&HashMap<String, String>>
pub fn user_arguments(&self) -> Option<&HashMap<String, String>>
Key-value pairs that are passed in the payload that Batch Operations sends when invoking an Lambda function. You must specify InvocationSchemaVersion
2.0 for LambdaInvoke
operations that include UserArguments
. For more information, see Automate object processing in Amazon S3 directory buckets with S3 Batch Operations and Lambda in the Amazon Web Services Storage Blog.
source§impl LambdaInvokeOperation
impl LambdaInvokeOperation
sourcepub fn builder() -> LambdaInvokeOperationBuilder
pub fn builder() -> LambdaInvokeOperationBuilder
Creates a new builder-style object to manufacture LambdaInvokeOperation
.
Trait Implementations§
source§impl Clone for LambdaInvokeOperation
impl Clone for LambdaInvokeOperation
source§fn clone(&self) -> LambdaInvokeOperation
fn clone(&self) -> LambdaInvokeOperation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LambdaInvokeOperation
impl Debug for LambdaInvokeOperation
source§impl PartialEq for LambdaInvokeOperation
impl PartialEq for LambdaInvokeOperation
source§fn eq(&self, other: &LambdaInvokeOperation) -> bool
fn eq(&self, other: &LambdaInvokeOperation) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LambdaInvokeOperation
Auto Trait Implementations§
impl Freeze for LambdaInvokeOperation
impl RefUnwindSafe for LambdaInvokeOperation
impl Send for LambdaInvokeOperation
impl Sync for LambdaInvokeOperation
impl Unpin for LambdaInvokeOperation
impl UnwindSafe for LambdaInvokeOperation
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