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.
Specifies how requests are redirected. In the event of an error, you can specify a different error code to return.
Namespace: Amazon.S3.Model
Assembly: AWSSDK.S3.dll
Version: 3.x.y.z
public class RoutingRuleRedirect
The RoutingRuleRedirect type exposes the following members
| Name | Description | |
|---|---|---|
|
RoutingRuleRedirect() |
| Name | Type | Description | |
|---|---|---|---|
|
HostName | System.String |
Gets and sets the property HostName. The host name to use in the redirect request. |
|
HttpRedirectCode | System.String |
Gets and sets the property HttpRedirectCode. The HTTP redirect code to use on the response. Not required if one of the siblings is present. |
|
Protocol | System.String |
Gets and sets the property Protocol. Protocol to use when redirecting requests. The default is the protocol that is used in the original request. |
|
ReplaceKeyPrefixWith | System.String |
Gets and sets the property ReplaceKeyPrefixWith.
The object key prefix to use in the redirect request. For example, to redirect requests
for all pages with prefix 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. |
|
ReplaceKeyWith | System.String |
Gets and sets the property ReplaceKeyWith.
The specific object key to use in the redirect request. For example, redirect request
to 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