Skip to content

Commit 361406e

Browse files
authored
Merge pull request #561 from jossy/patch-1
Clarification of `force_redirect` usage
2 parents 82221ec + f22ec3a commit 361406e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tencentcloud/resource_tc_cdn_domain.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ resource "tencentcloud_cdn_domain" "foo" {
2323
spdy_switch = "off"
2424
verify_client = "off"
2525
26-
force_redirect {
26+
force_redirect {
2727
switch = "on"
2828
redirect_type = "http"
2929
redirect_status_code = 302
@@ -315,30 +315,30 @@ func resourceTencentCloudCdnDomain() *schema.Resource {
315315
Optional: true,
316316
Computed: true,
317317
MaxItems: 1,
318-
Description: "Access protocol mandatory jump configuration. It's a list and consist of at most one item.",
318+
Description: "Configuration of forced HTTP or HTTPS redirects.",
319319
Elem: &schema.Resource{
320320
Schema: map[string]*schema.Schema{
321321
"switch": {
322322
Type: schema.TypeString,
323323
Optional: true,
324324
Default: CDN_SWITCH_OFF,
325325
ValidateFunc: validateAllowedStringValue(CDN_SWITCH),
326-
Description: "Access forced jump configuration switch. Valid values are `on` and `off`. Default value is `off`.",
326+
Description: "Forced redirect configuration switch. Valid values are `on` and `off`. Default value is `off`.",
327327
},
328328
"redirect_type": {
329329
Type: schema.TypeString,
330330
Optional: true,
331331
Default: CDN_ORIGIN_PULL_PROTOCOL_HTTP,
332332
ValidateFunc: validateAllowedStringValue(CDN_FORCE_REDIRECT_TYPE),
333-
Description: "Access forced jump type. Valid values are `http` and `https`. `http` means force http redirect, `https` means force http redirect. " +
333+
Description: "Forced redirect type. Valid values are `http` and `https`. `http` means a forced redirect from HTTPS to HTTP, `https` means a forced redirect from HTTP to HTTPS. " +
334334
"When `switch` setting `off`, this property does not need to be set or set to `http`. Default value is `http`.",
335335
},
336336
"redirect_status_code": {
337337
Type: schema.TypeInt,
338338
Optional: true,
339339
Default: 302,
340340
ValidateFunc: validateAllowedIntValue([]int{301, 302}),
341-
Description: "Access forced jump code. Valid values are `301` and `302`. " +
341+
Description: "Forced redirect status code. Valid values are `301` and `302`. " +
342342
"When `switch` setting `off`, this property does not need to be set or set to `302`. Default value is `302`.",
343343
},
344344
},

0 commit comments

Comments
 (0)