You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "Redirects all request configurations. Valid values: http, https. Default is `http`.",
486
486
},
487
+
"routing_rules": {
488
+
Type: schema.TypeList,
489
+
Optional: true,
490
+
MaxItems: 1,
491
+
Description: "Routing rule configuration. A RoutingRules container can contain up to 100 RoutingRule elements.",
492
+
Elem: &schema.Resource{
493
+
Schema: map[string]*schema.Schema{
494
+
"rules": {
495
+
Type: schema.TypeList,
496
+
Required: true,
497
+
Description: "Routing rule list.",
498
+
Elem: &schema.Resource{
499
+
Schema: map[string]*schema.Schema{
500
+
"condition_error_code": {
501
+
Type: schema.TypeString,
502
+
Optional: true,
503
+
Description: "Specifies the error code as the match condition for the routing rule. Valid values: only 4xx return codes, such as 403 or 404.",
504
+
},
505
+
"condition_prefix": {
506
+
Type: schema.TypeString,
507
+
Optional: true,
508
+
Description: "Specifies the object key prefix as the match condition for the routing rule.",
509
+
},
510
+
"redirect_protocol": {
511
+
Type: schema.TypeString,
512
+
Optional: true,
513
+
Description: "Specifies the target protocol for the routing rule. Only HTTPS is supported.",
514
+
},
515
+
"redirect_replace_key": {
516
+
Type: schema.TypeString,
517
+
Optional: true,
518
+
Description: "Specifies the target object key to replace the original object key in the request.",
519
+
},
520
+
"redirect_replace_key_prefix": {
521
+
Type: schema.TypeString,
522
+
Optional: true,
523
+
Description: "Specifies the object key prefix to replace the original prefix in the request. You can set this parameter only if the condition is KeyPrefixEquals.",
524
+
},
525
+
},
526
+
},
527
+
},
528
+
},
529
+
},
530
+
},
487
531
"endpoint": {
488
532
Type: schema.TypeString,
489
533
Computed: true,
@@ -1442,6 +1486,45 @@ func resourceTencentCloudCosBucketWebsiteUpdate(ctx context.Context, meta interf
@@ -496,6 +509,18 @@ The `replica_rules` object supports the following:
496
509
*`id` - (Optional, String) Name of a specific rule.
497
510
*`prefix` - (Optional, String) Prefix matching policy. Policies cannot overlap; otherwise, an error will be returned. To match the root directory, leave this parameter empty.
498
511
512
+
The `routing_rules` object of `website` supports the following:
513
+
514
+
*`rules` - (Required, List) Routing rule list.
515
+
516
+
The `rules` object of `routing_rules` supports the following:
517
+
518
+
*`condition_error_code` - (Optional, String) Specifies the error code as the match condition for the routing rule. Valid values: only 4xx return codes, such as 403 or 404.
519
+
*`condition_prefix` - (Optional, String) Specifies the object key prefix as the match condition for the routing rule.
520
+
*`redirect_protocol` - (Optional, String) Specifies the target protocol for the routing rule. Only HTTPS is supported.
521
+
*`redirect_replace_key_prefix` - (Optional, String) Specifies the object key prefix to replace the original prefix in the request. You can set this parameter only if the condition is KeyPrefixEquals.
522
+
*`redirect_replace_key` - (Optional, String) Specifies the target object key to replace the original object key in the request.
523
+
499
524
The `transition` object of `lifecycle_rules` supports the following:
500
525
501
526
*`storage_class` - (Required, String) Specifies the storage class to which you want the object to transition. Available values include `STANDARD_IA`, `MAZ_STANDARD_IA`, `INTELLIGENT_TIERING`, `MAZ_INTELLIGENT_TIERING`, `ARCHIVE`, `DEEP_ARCHIVE`. For more information, please refer to: https://cloud.tencent.com/document/product/436/33417.
@@ -507,6 +532,7 @@ The `website` object supports the following:
507
532
*`error_document` - (Optional, String) An absolute path to the document to return in case of a 4XX error.
508
533
*`index_document` - (Optional, String) COS returns this index document when requests are made to the root domain or any of the subfolders.
509
534
*`redirect_all_requests_to` - (Optional, String) Redirects all request configurations. Valid values: http, https. Default is `http`.
535
+
*`routing_rules` - (Optional, List) Routing rule configuration. A RoutingRules container can contain up to 100 RoutingRule elements.
0 commit comments