AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Write-S3BucketWebsite-BucketName <String>-ChecksumAlgorithm <ChecksumAlgorithm>-WebsiteConfiguration_ErrorDocument <String>-ExpectedBucketOwner <String>-RedirectAllRequestsTo_HostName <String>-RedirectAllRequestsTo_HttpRedirectCode <String>-WebsiteConfiguration_IndexDocumentSuffix <String>-RedirectAllRequestsTo_Protocol <String>-RedirectAllRequestsTo_ReplaceKeyPrefixWith <String>-RedirectAllRequestsTo_ReplaceKeyWith <String>-WebsiteConfiguration_RoutingRule <RoutingRule[]>-Select <String>-PassThru <SwitchParameter>-Force <SwitchParameter>-ClientConfig <AmazonS3Config>-UseAccelerateEndpoint <SwitchParameter>-UseDualstackEndpoint <SwitchParameter>-ForcePathStyleAddressing <Boolean>
Required? | False |
Position? | 1 |
Accept pipeline input? | True (ByValue, ByPropertyName) |
x-amz-checksum
or x-amz-trailer
header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request
. For more information, see Checking object integrity in the Amazon S3 User Guide.If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm
parameter. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
403 Forbidden
(access denied). Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | WebsiteConfiguration_RedirectAllRequestsTo_HostName |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | WebsiteConfiguration_RedirectAllRequestsTo_HttpRedirectCode |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | WebsiteConfiguration_RedirectAllRequestsTo_Protocol |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | WebsiteConfiguration_RedirectAllRequestsTo_ReplaceKeyPrefixWith |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | WebsiteConfiguration_RedirectAllRequestsTo_ReplaceKeyWith |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | WebsiteConfiguration_RoutingRules |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AK |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AWSProfilesLocation, ProfilesLocation |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | StoredCredentials, AWSProfileName |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | RegionToCall |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | SK, SecretAccessKey |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ST |
Write-S3BucketWebsite -BucketName 'amzn-s3-demo-bucket' -WebsiteConfiguration_IndexDocumentSuffix 'index.html' -WebsiteConfiguration_ErrorDocument 'error.html'The command enables website hosting for the given bucket with the index document as 'index.html' and error document as 'error.html'.
AWS Tools for PowerShell: 2.x.y.z