BucketWebsiteConfigurationV2RoutingRuleRedirectArgs

data class BucketWebsiteConfigurationV2RoutingRuleRedirectArgs(val hostName: Output<String>? = null, val httpRedirectCode: Output<String>? = null, val protocol: Output<String>? = null, val replaceKeyPrefixWith: Output<String>? = null, val replaceKeyWith: Output<String>? = null) : ConvertibleToJava<BucketWebsiteConfigurationV2RoutingRuleRedirectArgs>

Constructors

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

Properties

Link copied to clipboard
val hostName: Output<String>? = null

Host name to use in the redirect request.

Link copied to clipboard
val httpRedirectCode: Output<String>? = null

HTTP redirect code to use on the response.

Link copied to clipboard
val protocol: Output<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
val replaceKeyPrefixWith: Output<String>? = null

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: Output<String>? = null

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

Functions

Link copied to clipboard
open override fun toJava(): BucketWebsiteConfigurationV2RoutingRuleRedirectArgs