Request Parameter of PUT Bucket website
Type Definition
type SetBucketWebsiteConfigurationInput struct
Parameter Description
|
Field |
Type |
Optional or Mandatory |
Description |
|---|---|---|---|
|
Bucket |
string |
Mandatory |
Bucket name |
|
RedirectAllRequestsTo |
Optional |
Redirection rule of all requests |
|
|
IndexDocument |
Optional |
Default page configuration, which includes the Suffix field |
|
|
ErrorDocument |
Optional |
Error page configuration, which includes the Key field |
|
|
RoutingRules |
Optional |
Redirection rule list |
- ErrorDocument, IndexDocument, and RoutingRules must be used together and they cannot be used with RedirectAllRequestsTo.
- When ErrorDocument, IndexDocument, and RoutingRules are used together, RoutingRules can be nil.
- You must set either these three fields or RedirectAllRequestsTo.
Last Article: Expiration Time of a Noncurrent Object Version
Next Article: Response Result of GET Bucket website
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.