Skip to content

Commit 88dcd7e

Browse files
committed
add mps resource
1 parent 04108ba commit 88dcd7e

File tree

3 files changed

+122
-0
lines changed

3 files changed

+122
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
subcategory: "Media Processing Service(MPS)"
3+
layout: "tencentcloud"
4+
page_title: "TencentCloud: tencentcloud_mps_image_sprite_template"
5+
sidebar_current: "docs-tencentcloud-resource-mps_image_sprite_template"
6+
description: |-
7+
Provides a resource to create a mps image_sprite_template
8+
---
9+
10+
# tencentcloud_mps_image_sprite_template
11+
12+
Provides a resource to create a mps image_sprite_template
13+
14+
## Example Usage
15+
16+
```hcl
17+
resource "tencentcloud_mps_image_sprite_template" "image_sprite_template" {
18+
column_count = 10
19+
fill_type = "stretch"
20+
format = "jpg"
21+
height = 143
22+
name = "terraform-test"
23+
resolution_adaptive = "open"
24+
row_count = 10
25+
sample_interval = 10
26+
sample_type = "Time"
27+
width = 182
28+
}
29+
```
30+
31+
## Argument Reference
32+
33+
The following arguments are supported:
34+
35+
* `column_count` - (Required, Int) The number of columns in the small image in the sprite.
36+
* `row_count` - (Required, Int) The number of rows in the small image in the sprite.
37+
* `sample_interval` - (Required, Int) Sampling interval.When SampleType is Percent, specify the percentage of the sampling interval.When SampleType is Time, specify the sampling interval time in seconds.
38+
* `sample_type` - (Required, String) Sampling type, optional value:Percent/Time.
39+
* `comment` - (Optional, String) Template description information, length limit: 256 characters.
40+
* `fill_type` - (Optional, String) Filling type, when the aspect ratio of the video stream configuration is inconsistent with the aspect ratio of the original video, the processing method for transcoding is filling. Optional filling type:stretch: Stretching, stretching each frame to fill the entire screen, which may cause the transcoded video to be squashed or stretched.black: Leave black, keep the video aspect ratio unchanged, and fill the rest of the edge with black.Default value: black.
41+
* `format` - (Optional, String) Image format, the value can be jpg, png, webp. Default is jpg.
42+
* `height` - (Optional, Int) The maximum value of the height (or short side) of the small image in the sprite image, value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
43+
* `name` - (Optional, String) Image sprite template name, length limit: 64 characters.
44+
* `resolution_adaptive` - (Optional, String) Adaptive resolution, optional value:open: At this time, Width represents the long side of the video, Height represents the short side of the video.close: At this point, Width represents the width of the video, and Height represents the height of the video.Default value: open.
45+
* `width` - (Optional, Int) The maximum value of the width (or long side) of the small image in the sprite image, value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
46+
47+
## Attributes Reference
48+
49+
In addition to all arguments above, the following attributes are exported:
50+
51+
* `id` - ID of the resource.
52+
53+
54+
55+
## Import
56+
57+
mps image_sprite_template can be imported using the id, e.g.
58+
59+
```
60+
terraform import tencentcloud_mps_image_sprite_template.image_sprite_template image_sprite_template_id
61+
```
62+
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
subcategory: "Media Processing Service(MPS)"
3+
layout: "tencentcloud"
4+
page_title: "TencentCloud: tencentcloud_mps_snapshot_by_timeoffset_template"
5+
sidebar_current: "docs-tencentcloud-resource-mps_snapshot_by_timeoffset_template"
6+
description: |-
7+
Provides a resource to create a mps snapshot_by_timeoffset_template
8+
---
9+
10+
# tencentcloud_mps_snapshot_by_timeoffset_template
11+
12+
Provides a resource to create a mps snapshot_by_timeoffset_template
13+
14+
## Example Usage
15+
16+
```hcl
17+
resource "tencentcloud_mps_snapshot_by_timeoffset_template" "snapshot_by_timeoffset_template" {
18+
fill_type = "stretch"
19+
format = "jpg"
20+
height = 128
21+
name = "terraform-test"
22+
resolution_adaptive = "open"
23+
width = 140
24+
}
25+
```
26+
27+
## Argument Reference
28+
29+
The following arguments are supported:
30+
31+
* `comment` - (Optional, String) Template description information, length limit: 256 characters.
32+
* `fill_type` - (Optional, String) Filling type, when the aspect ratio of the video stream configuration is inconsistent with the aspect ratio of the original video, the processing method for transcoding is filling. Optional filling type:stretch: Stretching, stretching each frame to fill the entire screen, which may cause the transcoded video to be squashed or stretched.black: Leave black, keep the video aspect ratio unchanged, and fill the rest of the edge with black.white: Leave blank, keep the aspect ratio of the video, and fill the rest of the edge with white.gauss: Gaussian blur, keep the aspect ratio of the video unchanged, and use Gaussian blur for the rest of the edge.Default value: black.
33+
* `format` - (Optional, String) Image format, the value can be jpg, png, webp. Default is jpg.
34+
* `height` - (Optional, Int) The maximum value of the snapshot height (or short side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
35+
* `name` - (Optional, String) Snapshot by timeoffset template name, length limit: 64 characters.
36+
* `resolution_adaptive` - (Optional, String) Adaptive resolution, optional value:open: At this time, Width represents the long side of the video, Height represents the short side of the video.close: At this point, Width represents the width of the video, and Height represents the height of the video.Default value: open.
37+
* `width` - (Optional, Int) The maximum value of the snapshot width (or long side), value range: 0 and [128, 4096], unit: px.When Width and Height are both 0, the resolution is the same.When Width is 0 and Height is not 0, Width is scaled proportionally.When Width is not 0 and Height is 0, Height is scaled proportionally.When both Width and Height are not 0, the resolution is specified by the user.Default value: 0.
38+
39+
## Attributes Reference
40+
41+
In addition to all arguments above, the following attributes are exported:
42+
43+
* `id` - ID of the resource.
44+
45+
46+
47+
## Import
48+
49+
mps snapshot_by_timeoffset_template can be imported using the id, e.g.
50+
51+
```
52+
terraform import tencentcloud_mps_snapshot_by_timeoffset_template.snapshot_by_timeoffset_template snapshot_by_timeoffset_template_id
53+
```
54+

website/tencentcloud.erb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,6 +1428,12 @@
14281428
<li>
14291429
<a href="#">Resources</a>
14301430
<ul class="nav nav-auto-expand">
1431+
<li>
1432+
<a href="/docs/providers/tencentcloud/r/mps_image_sprite_template.html">tencentcloud_mps_image_sprite_template</a>
1433+
</li>
1434+
<li>
1435+
<a href="/docs/providers/tencentcloud/r/mps_snapshot_by_timeoffset_template.html">tencentcloud_mps_snapshot_by_timeoffset_template</a>
1436+
</li>
14311437
<li>
14321438
<a href="/docs/providers/tencentcloud/r/mps_transcode_template.html">tencentcloud_mps_transcode_template</a>
14331439
</li>

0 commit comments

Comments
 (0)