@Stability(value=Stable)
public static interface CfnBucket.LambdaConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnBucket.LambdaConfigurationProperty.Builder
A builder for
CfnBucket.LambdaConfigurationProperty |
static class |
CfnBucket.LambdaConfigurationProperty.Jsii$Proxy
An implementation for
CfnBucket.LambdaConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnBucket.LambdaConfigurationProperty.Builder |
builder() |
String |
getEvent()
The Amazon S3 bucket event for which to invoke the AWS Lambda function.
|
default Object |
getFilter()
The filtering rules that determine which objects invoke the AWS Lambda function.
|
String |
getFunction()
The Amazon Resource Name (ARN) of the AWS Lambda function that Amazon S3 invokes when the specified event type occurs.
|
@Stability(value=Stable) @NotNull String getEvent()
For more information, see Supported Event Types in the Amazon S3 User Guide .
@Stability(value=Stable) @NotNull String getFunction()
@Stability(value=Stable) @Nullable default Object getFilter()
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.
@Stability(value=Stable) static CfnBucket.LambdaConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.