Skip to content

Commit 49890cf

Browse files
gitmknanonymous
andauthored
fix: modify doc (#1542)
Co-authored-by: anonymous <anonymous@mail.org>
1 parent c397b2a commit 49890cf

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tencentcloud/resource_tc_cdn_domain.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -656,15 +656,15 @@ func resourceTencentCloudCdnDomain() *schema.Resource {
656656
Type: schema.TypeString,
657657
},
658658
Description: "Matching content under the corresponding type of CacheType: `all`: fill *, `file`: fill in the suffix name, such as jpg, txt, " +
659-
"`directory`: fill in the path, such as /xxx/test, `path`: fill in the absolute path, such as /xxx/test.html, `index`: fill /, `default`: Fill `no max-age`.",
659+
"`directory`: fill in the path, such as /xxx/test, `path`: fill in the absolute path, such as /xxx/test.html, `index`: fill /.",
660660
},
661661
"rule_type": {
662662
Type: schema.TypeString,
663663
Optional: true,
664664
Default: CDN_RULE_TYPE_DEFAULT,
665665
ValidateFunc: validateAllowedStringValue(CDN_RULE_TYPE),
666666
Description: "Rule type. The following types are supported: `all`: all documents take effect, `file`: the specified file suffix takes effect, " +
667-
"`directory`: the specified path takes effect, `path`: specify the absolute path to take effect, `index`: home page, `default`: effective when the source site has no max-age.",
667+
"`directory`: the specified path takes effect, `path`: specify the absolute path to take effect, `index`: home page.",
668668
},
669669
"switch": {
670670
Type: schema.TypeString,
@@ -1315,7 +1315,7 @@ func resourceTencentCloudCdnDomain() *schema.Resource {
13151315
"max_age_type": {
13161316
Type: schema.TypeString,
13171317
Required: true,
1318-
Description: "The following types are supported: `all`: all documents take effect, `file`: the specified file suffix takes effect, `directory`: the specified path takes effect, `path`: specify the absolute path to take effect, `index`: home page, `default`: effective when the source site has no max-age.",
1318+
Description: "The following types are supported: `all`: all documents take effect, `file`: the specified file suffix takes effect, `directory`: the specified path takes effect, `path`: specify the absolute path to take effect, `index`: home page.",
13191319
},
13201320
"max_age_contents": {
13211321
Type: schema.TypeList,

website/docs/r/cdn_domain.html.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ The `max_age_rules` object supports the following:
335335

336336
* `max_age_contents` - (Required, List) List of rule paths for each `max_age_type`: `*` for `all`, file ext like `jpg` for `file`, `/dir/like/` for `directory` and `/path/index.html` for `path`.
337337
* `max_age_time` - (Required, Int) Max Age time in seconds, this can set to `0` that stands for no cache.
338-
* `max_age_type` - (Required, String) The following types are supported: `all`: all documents take effect, `file`: the specified file suffix takes effect, `directory`: the specified path takes effect, `path`: specify the absolute path to take effect, `index`: home page, `default`: effective when the source site has no max-age.
338+
* `max_age_type` - (Required, String) The following types are supported: `all`: all documents take effect, `file`: the specified file suffix takes effect, `directory`: the specified path takes effect, `path`: specify the absolute path to take effect, `index`: home page.
339339
* `follow_origin` - (Optional, String) Whether to follow origin, values: `on`/`off`, if set to `on`, the `max_age_time` will be ignored.
340340

341341
The `max_age` object supports the following:
@@ -436,8 +436,8 @@ The `rule_cache` object supports the following:
436436
* `ignore_set_cookie` - (Optional, String) Ignore the Set-Cookie header of the origin site. Valid values are `on` and `off`. Default value is `off`. This parameter is for white-list customer.
437437
* `no_cache_switch` - (Optional, String) Cache configuration switch. Valid values are `on` and `off`.
438438
* `re_validate` - (Optional, String) Always check back to origin. Valid values are `on` and `off`. Default value is `off`.
439-
* `rule_paths` - (Optional, List) Matching content under the corresponding type of CacheType: `all`: fill *, `file`: fill in the suffix name, such as jpg, txt, `directory`: fill in the path, such as /xxx/test, `path`: fill in the absolute path, such as /xxx/test.html, `index`: fill /, `default`: Fill `no max-age`.
440-
* `rule_type` - (Optional, String) Rule type. The following types are supported: `all`: all documents take effect, `file`: the specified file suffix takes effect, `directory`: the specified path takes effect, `path`: specify the absolute path to take effect, `index`: home page, `default`: effective when the source site has no max-age.
439+
* `rule_paths` - (Optional, List) Matching content under the corresponding type of CacheType: `all`: fill *, `file`: fill in the suffix name, such as jpg, txt, `directory`: fill in the path, such as /xxx/test, `path`: fill in the absolute path, such as /xxx/test.html, `index`: fill /.
440+
* `rule_type` - (Optional, String) Rule type. The following types are supported: `all`: all documents take effect, `file`: the specified file suffix takes effect, `directory`: the specified path takes effect, `path`: specify the absolute path to take effect, `index`: home page.
441441
* `switch` - (Optional, String) Cache configuration switch. Valid values are `on` and `off`.
442442

443443
The `server_certificate_config` object supports the following:

0 commit comments

Comments
 (0)