interface LambdaConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.S3.CfnBucketPropsMixin.LambdaConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awss3#CfnBucketPropsMixin_LambdaConfigurationProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.s3.CfnBucketPropsMixin.LambdaConfigurationProperty |
Python | aws_cdk.cfn_property_mixins.aws_s3.CfnBucketPropsMixin.LambdaConfigurationProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_s3 » CfnBucketPropsMixin » LambdaConfigurationProperty |
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 { aws_s3 as s3 } from '@aws-cdk/cfn-property-mixins';
const lambdaConfigurationProperty: s3.CfnBucketPropsMixin.LambdaConfigurationProperty = {
event: 'event',
filter: {
s3Key: {
rules: [{
name: 'name',
value: 'value',
}],
},
},
function: 'function',
};
Properties
| Name | Type | Description |
|---|---|---|
| event? | string | The Amazon S3 bucket event for which to invoke the AWS Lambda function. |
| filter? | IResolvable | Notification | The filtering rules that determine which objects invoke the AWS Lambda function. |
| function? | string | IFunction | The Amazon Resource Name (ARN) of the AWS Lambda function that Amazon S3 invokes when the specified event type occurs. |
event?
Type:
string
(optional)
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 .
filter?
Type:
IResolvable | Notification
(optional)
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.
function?
Type:
string | IFunction
(optional)
The Amazon Resource Name (ARN) of the AWS Lambda function that Amazon S3 invokes when the specified event type occurs.

.NET
Go
Java
Python
TypeScript