Interface CfnBucket.LambdaConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBucket.LambdaConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnBucket
@Stability(Stable)
public static interface CfnBucket.LambdaConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Describes the AWS Lambda functions to invoke and the events for which to invoke them.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.s3.*; LambdaConfigurationProperty lambdaConfigurationProperty = LambdaConfigurationProperty.builder() .event("event") .function("function") // the properties below are optional .filter(NotificationFilterProperty.builder() .s3Key(S3KeyFilterProperty.builder() .rules(List.of(FilterRuleProperty.builder() .name("name") .value("value") .build())) .build()) .build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnBucket.LambdaConfigurationProperty
static final class
An implementation forCfnBucket.LambdaConfigurationProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
getEvent()
The Amazon S3 bucket event for which to invoke the AWS Lambda function.default Object
The filtering rules that determine which objects invoke the AWS Lambda function.The Amazon Resource Name (ARN) of the AWS Lambda function that Amazon S3 invokes when the specified event type occurs.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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
The Amazon Resource Name (ARN) of the AWS Lambda function that Amazon S3 invokes when the specified event type occurs. -
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
-