|
| 1 | +--- |
| 2 | +subcategory: "StreamLive(MDL)" |
| 3 | +layout: "tencentcloud" |
| 4 | +page_title: "TencentCloud: tencentcloud_mdl_stream_live_input" |
| 5 | +sidebar_current: "docs-tencentcloud-resource-mdl_stream_live_input" |
| 6 | +description: |- |
| 7 | + Provides a resource to create a mdl streamlive_input |
| 8 | +--- |
| 9 | + |
| 10 | +# tencentcloud_mdl_stream_live_input |
| 11 | + |
| 12 | +Provides a resource to create a mdl streamlive_input |
| 13 | + |
| 14 | +## Example Usage |
| 15 | + |
| 16 | +```hcl |
| 17 | +resource "tencentcloud_mdl_stream_live_input" "stream_live_input" { |
| 18 | + name = "terraform_test" |
| 19 | + type = "RTP_PUSH" |
| 20 | + security_group_ids = [ |
| 21 | + "6405DF9D000007DFB4EC" |
| 22 | + ] |
| 23 | +} |
| 24 | +``` |
| 25 | + |
| 26 | +## Argument Reference |
| 27 | + |
| 28 | +The following arguments are supported: |
| 29 | + |
| 30 | +* `name` - (Required, String) Input name, which can contain 1-32 case-sensitive letters, digits, and underscores and must be unique at the region level. |
| 31 | +* `type` - (Required, String, ForceNew) Input typeValid values: `RTMP_PUSH`, `RTP_PUSH`, `UDP_PUSH`, `RTMP_PULL`, `HLS_PULL`, `MP4_PULL`. |
| 32 | +* `input_settings` - (Optional, List) Input settings. For the type `RTMP_PUSH`, `RTMP_PULL`, `HLS_PULL`, or `MP4_PULL`, 1 or 2 inputs of the corresponding type can be configured. |
| 33 | +* `security_group_ids` - (Optional, Set: [`String`]) ID of the input security group to attachYou can attach only one security group to an input. |
| 34 | + |
| 35 | +The `input_settings` object supports the following: |
| 36 | + |
| 37 | +* `app_name` - (Optional, String) Application name, which is valid if `Type` is `RTMP_PUSH` and can contain 1-32 letters and digitsNote: This field may return `null`, indicating that no valid value was found. |
| 38 | +* `delay_time` - (Optional, Int) Delayed time (ms) for playback, which is valid if `Type` is `RTMP_PUSH`Value range: 0 (default) or 10000-600000The value must be a multiple of 1,000.Note: This field may return `null`, indicating that no valid value was found. |
| 39 | +* `input_address` - (Optional, String) RTP/UDP input address, which does not need to be entered for the input parameter.Note: this field may return null, indicating that no valid values can be obtained. |
| 40 | +* `input_domain` - (Optional, String) The domain of an SRT_PUSH address. If this is a request parameter, you do not need to specify it.Note: This field may return `null`, indicating that no valid value was found. |
| 41 | +* `password` - (Optional, String) The password, which is used for authentication.Note: This field may return `null`, indicating that no valid value was found. |
| 42 | +* `source_type` - (Optional, String) Source type for stream pulling and relaying. To pull content from private-read COS buckets under the current account, set this parameter to `TencentCOS`; otherwise, leave it empty.Note: this field may return `null`, indicating that no valid value was found. |
| 43 | +* `source_url` - (Optional, String) Source URL, which is valid if `Type` is `RTMP_PULL`, `HLS_PULL`, or `MP4_PULL` and can contain 1-512 charactersNote: This field may return `null`, indicating that no valid value was found. |
| 44 | +* `stream_name` - (Optional, String) Stream name, which is valid if `Type` is `RTMP_PUSH` and can contain 1-32 letters and digitsNote: This field may return `null`, indicating that no valid value was found. |
| 45 | +* `user_name` - (Optional, String) The username, which is used for authentication.Note: This field may return `null`, indicating that no valid value was found. |
| 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 | +mdl stream_live_input can be imported using the id, e.g. |
| 58 | + |
| 59 | +``` |
| 60 | +terraform import tencentcloud_mdl_stream_live_input.stream_live_input id |
| 61 | +``` |
| 62 | + |
0 commit comments