Skip to content

Commit b36edf3

Browse files
authored
add ecdn (#1637)
* add ecdn * add changelog
1 parent a1d772e commit b36edf3

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

.changelog/1637.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_cdn_domain: `service_type` support set `hybrid`, `dynamic`
3+
```

tencentcloud/extension_cdn.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ const (
44
CDN_SERVICE_TYPE_WEB = "web"
55
CDN_SERVICE_TYPE_DOWNLOAD = "download"
66
CDN_SERVICE_TYPE_MEDIA = "media"
7+
CDN_SERVICE_TYPE_HYBIRD = "hybrid"
8+
CDN_SERVICE_TYPE_DYNAMIC = "dynamic"
79

810
CDN_ORIGIN_TYPE_DOMAIN = "domain"
911
CDN_ORIGIN_TYPE_COS = "cos"
@@ -47,6 +49,8 @@ var CDN_SERVICE_TYPE = []string{
4749
CDN_SERVICE_TYPE_WEB,
4850
CDN_SERVICE_TYPE_DOWNLOAD,
4951
CDN_SERVICE_TYPE_MEDIA,
52+
CDN_SERVICE_TYPE_HYBIRD,
53+
CDN_SERVICE_TYPE_DYNAMIC,
5054
}
5155

5256
var CDN_ORIGIN_TYPE = []string{

tencentcloud/resource_tc_cdn_domain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ func resourceTencentCloudCdnDomain() *schema.Resource {
194194
Required: true,
195195
ForceNew: true,
196196
ValidateFunc: validateAllowedStringValue(CDN_SERVICE_TYPE),
197-
Description: "Acceleration domain name service type. `web`: static acceleration, `download`: download acceleration, `media`: streaming media VOD acceleration.",
197+
Description: "Acceleration domain name service type. `web`: static acceleration, `download`: download acceleration, `media`: streaming media VOD acceleration, `hybrid`: hybrid acceleration, `dynamic`: dynamic acceleration.",
198198
},
199199
"project_id": {
200200
Type: schema.TypeInt,

website/docs/r/cdn_domain.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ The following arguments are supported:
148148

149149
* `domain` - (Required, String, ForceNew) Name of the acceleration domain.
150150
* `origin` - (Required, List) Origin server configuration. It's a list and consist of at most one item.
151-
* `service_type` - (Required, String, ForceNew) Acceleration domain name service type. `web`: static acceleration, `download`: download acceleration, `media`: streaming media VOD acceleration.
151+
* `service_type` - (Required, String, ForceNew) Acceleration domain name service type. `web`: static acceleration, `download`: download acceleration, `media`: streaming media VOD acceleration, `hybrid`: hybrid acceleration, `dynamic`: dynamic acceleration.
152152
* `area` - (Optional, String) Domain name acceleration region. `mainland`: acceleration inside mainland China, `overseas`: acceleration outside mainland China, `global`: global acceleration. Overseas acceleration service must be enabled to use overseas acceleration and global acceleration.
153153
* `authentication` - (Optional, List) Specify timestamp hotlink protection configuration, NOTE: only one type can choose for the sub elements.
154154
* `aws_private_access` - (Optional, List) Access authentication for S3 origin.

0 commit comments

Comments
 (0)