BucketWebsiteConfigurationV2RoutingRuleRedirect

data class BucketWebsiteConfigurationV2RoutingRuleRedirect(val hostName: String? = null, val httpRedirectCode: String? = null, val protocol: String? = null, val replaceKeyPrefixWith: String? = null, val replaceKeyWith: String? = null)

Constructors

constructor(hostName: String? = null, httpRedirectCode: String? = null, protocol: String? = null, replaceKeyPrefixWith: String? = null, replaceKeyWith: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val hostName: String? = null

Host name to use in the redirect request.

Link copied to clipboard

HTTP redirect code to use on the response.

Link copied to clipboard
val protocol: String? = null

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

Link copied to clipboard

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 key_prefix_equals set to docs/ and in the redirect set replace_key_prefix_with to /documents.

Link copied to clipboard
val replaceKeyWith: String? = null

Specific object key to use in the redirect request. For example, redirect request to error.html.