AWS SDK for .NET Documentation
PutBucketWebsite Method (request)
AmazonAmazon.S3AmazonS3PutBucketWebsite(PutBucketWebsiteRequest) Did this page help you?   Yes   No    Tell us about it...
Enables or configures an S3-based website using the corresponding bucket as the content source.
Declaration Syntax
Parameters
request (PutBucketWebsiteRequest)
The PutBucketWebsiteRequest that defines the parameters of the operation.
Return Value
Returns a PutBucketWebsiteResponse from S3.
Remarks

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/

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)