Interface CfnBucket.LambdaConfigurationProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnBucket.LambdaConfigurationProperty extends
Describes the AWS Lambda functions to invoke and the events for which to invoke them.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 LambdaConfigurationProperty lambdaConfigurationProperty = LambdaConfigurationProperty.builder()
         // the properties below are optional
  • Method Details

    • getEvent

      @Stability(Stable) @NotNull String getEvent()
      The Amazon S3 bucket event for which to invoke the AWS Lambda function.

      For more information, see Supported Event Types in the Amazon S3 User Guide .

    • getFunction

      @Stability(Stable) @NotNull String getFunction()
      The Amazon Resource Name (ARN) of the AWS Lambda function that Amazon S3 invokes when the specified event type occurs.
    • getFilter

      @Stability(Stable) @Nullable default Object getFilter()
      The filtering rules that determine which objects invoke the AWS Lambda function.

      For example, you can create a filter so that only image files with a .jpg extension invoke the function when they are added to the Amazon S3 bucket.

    • builder

      @Stability(Stable) static CfnBucket.LambdaConfigurationProperty.Builder builder()
      a CfnBucket.LambdaConfigurationProperty.Builder of CfnBucket.LambdaConfigurationProperty