Class: AmazonS3WebsiteConfigurationRoutingRulesRedirectRuleProperty

Types~AmazonS3WebsiteConfigurationRoutingRulesRedirectRuleProperty

new AmazonS3WebsiteConfigurationRoutingRulesRedirectRuleProperty()

Properties:
Name Type Description
HostName String Required: No. Name of the host where requests are redirected.
HttpRedirectCode String Required: No. The HTTP redirect code to use on the response.
Protocol String Required: No. The protocol to use in the redirect request.
ReplaceKeyPrefixWith String Required: No. The object key prefix to use in the redirect request. For example, to redirect requests for all pages with the prefix docs/ (objects in the docs/ folder) to the documents/ prefix, you can set the KeyPrefixEquals property in routing condition property to docs/, and set the ReplaceKeyPrefixWith property to documents/.ImportantIf you specify this property, you cannot specify the ReplaceKeyWith property.
ReplaceKeyWith String Required: No. The specific object key to use in the redirect request. For example, redirect request to error.html.ImportantIf you specify this property, you cannot specify the ReplaceKeyPrefixWith property.
Source: