aws-cdk-lib.aws_sam.CfnFunction.S3EventProperty

interface S3EventProperty

LanguageType name
.NETAmazon.CDK.AWS.SAM.CfnFunction.S3EventProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awssam#CfnFunction_S3EventProperty
Javasoftware.amazon.awscdk.services.sam.CfnFunction.S3EventProperty
Pythonaws_cdk.aws_sam.CfnFunction.S3EventProperty
TypeScript aws-cdk-lib » aws_sam » CfnFunction » S3EventProperty

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sam as sam } from 'aws-cdk-lib';
const s3EventProperty: sam.CfnFunction.S3EventProperty = {
  bucket: 'bucket',
  events: 'events',

  // the properties below are optional
  filter: {
    s3Key: {
      rules: [{
        name: 'name',
        value: 'value',
      }],
    },
  },
};

Properties

NameTypeDescription
bucketstringCfnFunction.S3EventProperty.Bucket.
eventsstring | string[] | IResolvableCfnFunction.S3EventProperty.Events.
filter?IResolvable | S3NotificationFilterPropertyCfnFunction.S3EventProperty.Filter.

bucket

Type: string

CfnFunction.S3EventProperty.Bucket.


events

Type: string | string[] | IResolvable

CfnFunction.S3EventProperty.Events.


filter?

Type: IResolvable | S3NotificationFilterProperty (optional)

CfnFunction.S3EventProperty.Filter.