Class: Aws::S3::Types::PutBucketWebsiteRequest

Inherits:
Struct
  • Object
show all
Includes:
Aws::Structure
Defined in:
lib/aws-sdk-s3/types.rb

Overview

Note:

When making an API call, you may pass PutBucketWebsiteRequest data as a hash:

{
  bucket: "BucketName", # required
  content_md5: "ContentMD5",
  website_configuration: { # required
    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",
        },
      },
    ],
  },
}

Instance Attribute Summary collapse

Instance Attribute Details

#bucketString

Returns:

  • (String)


6689
6690
6691
6692
6693
6694
# File 'lib/aws-sdk-s3/types.rb', line 6689

class PutBucketWebsiteRequest < Struct.new(
  :bucket,
  :content_md5,
  :website_configuration)
  include Aws::Structure
end

#content_md5String

Returns:

  • (String)


6689
6690
6691
6692
6693
6694
# File 'lib/aws-sdk-s3/types.rb', line 6689

class PutBucketWebsiteRequest < Struct.new(
  :bucket,
  :content_md5,
  :website_configuration)
  include Aws::Structure
end

#website_configurationTypes::WebsiteConfiguration



6689
6690
6691
6692
6693
6694
# File 'lib/aws-sdk-s3/types.rb', line 6689

class PutBucketWebsiteRequest < Struct.new(
  :bucket,
  :content_md5,
  :website_configuration)
  include Aws::Structure
end