|
| 1 | +--- |
| 2 | +subcategory: "Media Processing Service(MPS)" |
| 3 | +layout: "tencentcloud" |
| 4 | +page_title: "TencentCloud: tencentcloud_mps_sample_snapshot_template" |
| 5 | +sidebar_current: "docs-tencentcloud-resource-mps_sample_snapshot_template" |
| 6 | +description: |- |
| 7 | + Provides a resource to create a mps sample_snapshot_template |
| 8 | +--- |
| 9 | + |
| 10 | +# tencentcloud_mps_sample_snapshot_template |
| 11 | + |
| 12 | +Provides a resource to create a mps sample_snapshot_template |
| 13 | + |
| 14 | +## Example Usage |
| 15 | + |
| 16 | +```hcl |
| 17 | +resource "tencentcloud_mps_sample_snapshot_template" "sample_snapshot_template" { |
| 18 | + fill_type = "stretch" |
| 19 | + format = "jpg" |
| 20 | + height = 128 |
| 21 | + name = "terraform-test-for" |
| 22 | + resolution_adaptive = "open" |
| 23 | + sample_interval = 10 |
| 24 | + sample_type = "Percent" |
| 25 | + width = 140 |
| 26 | +} |
| 27 | +``` |
| 28 | + |
| 29 | +## Argument Reference |
| 30 | + |
| 31 | +The following arguments are supported: |
| 32 | + |
| 33 | +* `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. |
| 34 | +* `sample_type` - (Required, String) Sampling snapshot type, optional value:Percent/Time. |
| 35 | +* `comment` - (Optional, String) Template description information, length limit: 256 characters. |
| 36 | +* `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. |
| 37 | +* `format` - (Optional, String) Image format, the value can be jpg, png, webp. Default is jpg. |
| 38 | +* `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. |
| 39 | +* `name` - (Optional, String) Sample snapshot template name, length limit: 64 characters. |
| 40 | +* `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. |
| 41 | +* `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. |
| 42 | + |
| 43 | +## Attributes Reference |
| 44 | + |
| 45 | +In addition to all arguments above, the following attributes are exported: |
| 46 | + |
| 47 | +* `id` - ID of the resource. |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | +## Import |
| 52 | + |
| 53 | +mps sample_snapshot_template can be imported using the id, e.g. |
| 54 | + |
| 55 | +``` |
| 56 | +terraform import tencentcloud_mps_sample_snapshot_template.sample_snapshot_template sample_snapshot_template_id |
| 57 | +``` |
| 58 | + |
0 commit comments