You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-s3/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)


6603
6604
6605
6606
6607
6608
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 6603

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

#content_md5String

Returns:

  • (String)


6603
6604
6605
6606
6607
6608
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 6603

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

#website_configurationTypes::WebsiteConfiguration



6603
6604
6605
6606
6607
6608
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 6603

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