AWS::S3::Bucket FilterRule - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::S3::Bucket FilterRule

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

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "Name" : String, "Value" : String }

YAML

Name: String Value: String

Properties

Name

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.

Required: Yes

Type: String

Allowed values: prefix | suffix

Update requires: No interruption

Value

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

Required: Yes

Type: String

Update requires: No interruption