Interface LambdaInvokeOperation.Builder

    • Method Detail

      • functionArn

        LambdaInvokeOperation.Builder functionArn​(String functionArn)

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

        Parameters:
        functionArn - The Amazon Resource Name (ARN) for the Lambda function that the specified job will invoke on every object in the manifest.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • invocationSchemaVersion

        LambdaInvokeOperation.Builder invocationSchemaVersion​(String invocationSchemaVersion)

        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 Using Lambda with Amazon S3 Batch Operations and Amazon S3 Express One Zone 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.

        Parameters:
        invocationSchemaVersion - 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 Using Lambda with Amazon S3 Batch Operations and Amazon S3 Express One Zone 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:
        Returns a reference to this object so that method calls can be chained together.