AWS CloudFormation
User Guide (Version )

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

AWS::S3::Bucket ReplicationRule

Specifies which Amazon S3 objects to replicate and where to store the replicas.

Syntax

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

Properties

Destination

A container for information about the replication destination.

Required: Yes

Type: ReplicationDestination

Update requires: No interruption

Id

A unique identifier for the rule. The maximum value is 255 characters. If you don't specify a value, AWS CloudFormation generates a random ID.

Required: No

Type: String

Update requires: No interruption

Prefix

An object keyname prefix that identifies the object or objects to which the rule applies. The maximum prefix length is 1,024 characters. To include all objects in a bucket, specify an empty string.

Required: Yes

Type: String

Update requires: No interruption

SourceSelectionCriteria

A container that describes additional filters for identifying the source objects that you want to replicate. You can choose to enable or disable the replication of these objects. Currently, Amazon S3 supports only the filter that you can specify for objects created with server-side encryption using an AWS KMS-Managed Key (SSE-KMS).

Required: No

Type: SourceSelectionCriteria

Update requires: No interruption

Status

Specifies whether the rule is enabled.

Required: Yes

Type: String

Allowed Values: Disabled | Enabled

Update requires: No interruption

On this page: