AWS SDK for .NET Documentation
RoutingRuleRedirect Class
AmazonAmazon.S3.ModelRoutingRuleRedirect 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.
Declaration Syntax
C#
public class RoutingRuleRedirect
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
RoutingRuleRedirect()()()()
Initializes a new instance of the RoutingRuleRedirect class

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
HostName
The host name to use in the redirect request.

HttpRedirectCode
The HTTP redirect code to use on the response.

Protocol
The protocol to use in the redirect request.

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.

ReplaceKeyWith
The specific object key to use in the redirect request. For example, redirect request to error.html.

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
WithHostName(String) Obsolete.
The host name to use in the redirect request.

WithHttpRedirectCode(String) Obsolete.
The HTTP redirect code to use on the response.

WithProtocol(String) Obsolete.
The protocol to use in the redirect request.

WithReplaceKeyPrefixWith(String) Obsolete.
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.

WithReplaceKeyWith(String) Obsolete.
The specific object key to use in the redirect request. For example, redirect request to error.html.

Inheritance Hierarchy
Object
RoutingRuleRedirect

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)