Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Class: Aws::S3Control::Types::LambdaInvokeOperation

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-s3control/lib/aws-sdk-s3control/types.rb

Overview

Contains the configuration parameters for a Lambda Invoke operation.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#function_arnString

The Amazon Resource Name (ARN) for the Lambda function that the specified job will invoke on every object in the manifest.

Returns:

  • (String)

4349
4350
4351
4352
4353
4354
4355
# File 'gems/aws-sdk-s3control/lib/aws-sdk-s3control/types.rb', line 4349

class LambdaInvokeOperation < Struct.new(
  :function_arn,
  :invocation_schema_version,
  :user_arguments)
  SENSITIVE = []
  include Aws::Structure
end

#invocation_schema_versionString

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.

Returns:

  • (String)

4349
4350
4351
4352
4353
4354
4355
# File 'gems/aws-sdk-s3control/lib/aws-sdk-s3control/types.rb', line 4349

class LambdaInvokeOperation < Struct.new(
  :function_arn,
  :invocation_schema_version,
  :user_arguments)
  SENSITIVE = []
  include Aws::Structure
end

#user_argumentsHash<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.

Returns:

  • (Hash<String,String>)

4349
4350
4351
4352
4353
4354
4355
# File 'gems/aws-sdk-s3control/lib/aws-sdk-s3control/types.rb', line 4349

class LambdaInvokeOperation < Struct.new(
  :function_arn,
  :invocation_schema_version,
  :user_arguments)
  SENSITIVE = []
  include Aws::Structure
end