RoutingRuleRedirect Class

.NET Framework 4.5
 
 
 
Did this page help you?  Yes  No   Tell us about it...

Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.

Inheritance Hierarchy

System.Object
  Amazon.S3.Model.RoutingRuleRedirect

Namespace: Amazon.S3.Model
Assembly: AWSSDK.dll
Version: 2.0.0.3

Syntax

C#
public class RoutingRuleRedirect : Object

The RoutingRuleRedirect type exposes the following members

Constructors

  Name Description
Public Method RoutingRuleRedirect()

Properties

  Name Description
Public Property HostName Name of the host where requests will be redirected.
Public Property HttpRedirectCode The HTTP redirect code to use on the response. Not required if one of the siblings is present.
Public Property Protocol Protocol to use (http, https) when redirecting requests. The default is the protocol that is used in the original request.
Public Property ReplaceKeyPrefixWith The object key prefix to use in the redirect request. For example, to redirect requests for all pages with prefix docs/ (objects in the docs/ folder) to documents/, you can set a condition block with KeyPrefixEquals set to docs/ and in the Redirect set ReplaceKeyPrefixWith to /documents. Not required if one of the siblings is present. Can be present only if ReplaceKeyWith is not provided.
Public Property ReplaceKeyWith The specific object key to use in the redirect request. For example, redirect request to error.html. Not required if one of the sibling is present. Can be present only if ReplaceKeyPrefixWith is not provided.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

.NET for Windows Store apps:
Supported in: Windows 8

.NET for Windows Phone:
Supported in: Window Phone 8