Menu
AWS CloudFormation
User Guide (API Version 2010-05-15)

Amazon S3 Website Configuration Routing Rules Routing Rule Condition Property

The RoutingRuleCondition property is an embedded property of the Amazon S3 Website Configuration Routing Rules Property that describes a condition that must be met for a redirect to apply.

Syntax

JSON

Copy
{ "HttpErrorCodeReturnedEquals" : String, "KeyPrefixEquals" : String }

YAML

Copy
HttpErrorCodeReturnedEquals: String KeyPrefixEquals: String

Properties

HttpErrorCodeReturnedEquals

Applies this redirect if the error code equals this value in the event of an error.

Required: Conditional. You must specify at least one condition property.

Type: String

KeyPrefixEquals

The object key name prefix when the redirect is applied. For example, to redirect requests for ExamplePage.html, set the key prefix to ExamplePage.html. To redirect request for all pages with the prefix docs/, set the key prefix to docs/, which identifies all objects in the docs/ folder.

Required: Conditional. You must at least one condition property.

Type: String