LambdaInvokeOperation
Contains the configuration parameters for a Lambda Invoke
operation.
Contents
- FunctionArn
-
The Amazon Resource Name (ARN) for the AWS Lambda function that the specified job will invoke on every object in the manifest.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 1024.
Pattern:
(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?
Required: No
- InvocationSchemaVersion
-
Specifies the schema version for the payload that Batch Operations sends when invoking an AWS Lambda function. Version
1.0
is the default. Version2.0
is required when you use Batch Operations to invoke AWS Lambda functions that act on directory buckets, or if you need to specifyUserArguments
. For more information, see Automate object processing in Amazon S3 directory buckets with S3 Batch Operations and AWS Lambdain the AWS Storage Blog. Important
Ensure that your AWS Lambda function code expects
InvocationSchemaVersion
2.0 and uses bucket name rather than bucket ARN. If theInvocationSchemaVersion
does not match what your AWS Lambda function expects, your function might not work as expected.Note
Directory buckets - To initiate AWS Lambda function to perform custom actions on objects in directory buckets, you must specify
2.0
.Type: String
Length Constraints: Minimum length of 1. Maximum length of 64.
Required: No
- UserArguments
-
Key-value pairs that are passed in the payload that Batch Operations sends when invoking an AWS Lambda function. You must specify
InvocationSchemaVersion
2.0 forLambdaInvoke
operations that includeUserArguments
. For more information, see Automate object processing in Amazon S3 directory buckets with S3 Batch Operations and AWS Lambdain the AWS Storage Blog. Type: String to string map
Map Entries: Maximum number of 10 items.
Key Length Constraints: Minimum length of 1. Maximum length of 64.
Value Length Constraints: Maximum length of 1024.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: