interface LambdaConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.S3.Mixins.CfnBucketPropsMixin.LambdaConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awss3/mixins#CfnBucketPropsMixin_LambdaConfigurationProperty |
Java | software.amazon.awscdk.mixins.preview.services.s3.mixins.CfnBucketPropsMixin.LambdaConfigurationProperty |
Python | aws_cdk.mixins_preview.aws_s3.mixins.CfnBucketPropsMixin.LambdaConfigurationProperty |
TypeScript | @aws-cdk/mixins-preview » aws_s3 » mixins » 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 { mixins as s3_mixins } from '@aws-cdk/mixins-preview/aws-s3';
const lambdaConfigurationProperty: s3_mixins.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 | 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
(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