class Aws::S3::Types::WebsiteConfiguration

Specifies website configuration parameters for an Amazon S3 bucket.

@note When making an API call, you may pass WebsiteConfiguration

data as a hash:

    {
      error_document: {
        key: "ObjectKey", # required
      },
      index_document: {
        suffix: "Suffix", # required
      },
      redirect_all_requests_to: {
        host_name: "HostName", # required
        protocol: "http", # accepts http, https
      },
      routing_rules: [
        {
          condition: {
            http_error_code_returned_equals: "HttpErrorCodeReturnedEquals",
            key_prefix_equals: "KeyPrefixEquals",
          },
          redirect: { # required
            host_name: "HostName",
            http_redirect_code: "HttpRedirectCode",
            protocol: "http", # accepts http, https
            replace_key_prefix_with: "ReplaceKeyPrefixWith",
            replace_key_with: "ReplaceKeyWith",
          },
        },
      ],
    }

@!attribute [rw] error_document

The name of the error document for the website.
@return [Types::ErrorDocument]

@!attribute [rw] index_document

The name of the index document for the website.
@return [Types::IndexDocument]

@!attribute [rw] redirect_all_requests_to

The redirect behavior for every request to this bucket's website
endpoint.

If you specify this property, you can't specify any other property.
@return [Types::RedirectAllRequestsTo]

@!attribute [rw] routing_rules

Rules that define when a redirect is applied and the redirect
behavior.
@return [Array<Types::RoutingRule>]

@see docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/WebsiteConfiguration AWS API Documentation

Constants

SENSITIVE