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
{ "HttpErrorCodeReturnedEquals" :String, "KeyPrefixEquals" :String}
YAML
HttpErrorCodeReturnedEquals:StringKeyPrefixEquals: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 toExamplePage.html. To redirect request for all pages with the prefixdocs/, set the key prefix todocs/, which identifies all objects in thedocs/folder.Required: Conditional. You must at least one condition property.
Type: String
