Enables or configures an S3-based website using the corresponding bucket as the content source.

C# |
public PutBucketWebsiteResponse PutBucketWebsite( PutBucketWebsiteRequest request )

- request (PutBucketWebsiteRequest)
- The PutBucketWebsiteRequest that defines the parameters of the operation.

Returns a PutBucketWebsiteResponse from S3.

The website will have one default domain name associated with it, which is the bucket name. If you attempt to configure an S3 website for a bucket whose name is not compatible with DNS, Amazon S3 returns an InvalidBucketName error. For more information on bucket names and DNS, refer to Bucket Restrictions and Limitations.
To visit the S3 bucket as a website a new endpoint is created in the following pattern http://[bucketName].s3-website-[region].amazonaws.com/. This is a sample url for a bucket called example-bucket in the us-east-1 region. http://example-bucket.s3-website-us-east-1.amazonaws.com/