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
0 commit comments