AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
A container for describing a condition that must be met for the specified redirect
to apply. For example, 1. If request is for pages in the /docs folder, redirect
to the /documents folder. 2. If request results in HTTP error 4xx, redirect
request to another host where you might process the error.
Namespace: Amazon.S3.Model
Assembly: AWSSDK.S3.dll
Version: 3.x.y.z
public class RoutingRuleCondition
The RoutingRuleCondition type exposes the following members
| Name | Description | |
|---|---|---|
|
RoutingRuleCondition() |
| Name | Type | Description | |
|---|---|---|---|
|
HttpErrorCodeReturnedEquals | System.String |
Gets and sets the property HttpErrorCodeReturnedEquals.
The HTTP error code when the redirect is applied. In the event of an error, if the
error code equals this value, then the specified redirect is applied. Required when
parent element |
|
KeyPrefixEquals | System.String |
Gets and sets the property KeyPrefixEquals.
The object key name prefix when the redirect is applied. For example, to redirect
requests for Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.7.2 and newer