BucketWebsiteConfigurationV2RoutingRuleRedirect constructor

const BucketWebsiteConfigurationV2RoutingRuleRedirect({
  1. Input<String?>? hostName,
  2. Input<String?>? httpRedirectCode,
  3. Input<String?>? protocol,
  4. Input<String?>? replaceKeyPrefixWith,
  5. Input<String?>? replaceKeyWith,
})

Creates a new BucketWebsiteConfigurationV2RoutingRuleRedirect. hostName Host name to use in the redirect request. httpRedirectCode HTTP redirect code to use on the response. protocol Protocol to use when redirecting requests. The default is the protocol that is used in the original request. Valid values: http, https. replaceKeyPrefixWith 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 Specific object key to use in the redirect request. For example, redirect request to error.html.

Implementation

const BucketWebsiteConfigurationV2RoutingRuleRedirect({
  this.hostName,
  this.httpRedirectCode,
  this.protocol,
  this.replaceKeyPrefixWith,
  this.replaceKeyWith,
});