aws-cdk-lib.aws_s3.CfnBucket.FilterRuleProperty

interface FilterRuleProperty

LanguageType name
.NETAmazon.CDK.AWS.S3.CfnBucket.FilterRuleProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awss3#CfnBucket_FilterRuleProperty
Javasoftware.amazon.awscdk.services.s3.CfnBucket.FilterRuleProperty
Pythonaws_cdk.aws_s3.CfnBucket.FilterRuleProperty
TypeScript aws-cdk-lib » aws_s3 » CfnBucket » FilterRuleProperty

Specifies the Amazon S3 object key name to filter on and whether to filter on the suffix or prefix of the key name.

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-lib';
const filterRuleProperty: s3.CfnBucket.FilterRuleProperty = {
  name: 'name',
  value: 'value',
};

Properties

NameTypeDescription
namestringThe object key name prefix or suffix identifying one or more objects to which the filtering rule applies.
valuestringThe value that the filter searches for in object key names.

name

Type: string

The object key name prefix or suffix identifying one or more objects to which the filtering rule applies.

The maximum length is 1,024 characters. Overlapping prefixes and suffixes are not supported. For more information, see Configuring Event Notifications in the Amazon S3 User Guide .


value

Type: string

The value that the filter searches for in object key names.