Table of Contents

Class RoutingRuleRedirect

Namespace
Amazon.S3.Model
Assembly
AWSSDK.S3.dll

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.

public class RoutingRuleRedirect
Inheritance
RoutingRuleRedirect
Inherited Members

Constructors

RoutingRuleRedirect()

public RoutingRuleRedirect()

Properties

HostName

Name of the host where requests will be redirected.

public string HostName { get; set; }

Property Value

string

HttpRedirectCode

The HTTP redirect code to use on the response. Not required if one of the siblings is present.

public string HttpRedirectCode { get; set; }

Property Value

string

Protocol

Protocol to use (http, https) when redirecting requests. The default is the protocol that is used in the original request.

public string Protocol { get; set; }

Property Value

string

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 string ReplaceKeyPrefixWith { get; set; }

Property Value

string

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.

public string ReplaceKeyWith { get; set; }

Property Value

string