paws.storage (version 0.1.0)

s3_put_bucket_website: Set the website configuration for a bucket

Description

Set the website configuration for a bucket.

Usage

s3_put_bucket_website(Bucket, ContentMD5, WebsiteConfiguration)

Arguments

Bucket

[required]

ContentMD5
WebsiteConfiguration

[required]

Request syntax

svc$put_bucket_website(
  Bucket = "string",
  ContentMD5 = "string",
  WebsiteConfiguration = list(
    ErrorDocument = list(
      Key = "string"
    ),
    IndexDocument = list(
      Suffix = "string"
    ),
    RedirectAllRequestsTo = list(
      HostName = "string",
      Protocol = "http"|"https"
    ),
    RoutingRules = list(
      list(
        Condition = list(
          HttpErrorCodeReturnedEquals = "string",
          KeyPrefixEquals = "string"
        ),
        Redirect = list(
          HostName = "string",
          HttpRedirectCode = "string",
          Protocol = "http"|"https",
          ReplaceKeyPrefixWith = "string",
          ReplaceKeyWith = "string"
        )
      )
    )
  )
)

Examples

Run this code
# NOT RUN {
# The following example adds website configuration to a bucket.
# }
# NOT RUN {
svc$put_bucket_website(
  Bucket = "examplebucket",
  ContentMD5 = "",
  WebsiteConfiguration = list(
    ErrorDocument = list(
      Key = "error.html"
    ),
    IndexDocument = list(
      Suffix = "index.html"
    )
  )
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab