// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
using Pulumi;

namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Mdl
{
    /// <summary>
    /// Provides a resource to create a mdl streamlive_input
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using Pulumi;
    /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
    /// 
    /// class MyStack : Stack
    /// {
    ///     public MyStack()
    ///     {
    ///         var streamLiveInput = new Tencentcloud.Mdl.StreamLiveInput("streamLiveInput", new Tencentcloud.Mdl.StreamLiveInputArgs
    ///         {
    ///             SecurityGroupIds = 
    ///             {
    ///                 "6405DF9D000007DFB4EC",
    ///             },
    ///             Type = "RTP_PUSH",
    ///         });
    ///     }
    /// 
    /// }
    /// ```
    /// 
    /// ## Import
    /// 
    /// mdl stream_live_input can be imported using the id, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import tencentcloud:Mdl/streamLiveInput:StreamLiveInput stream_live_input id
    /// ```
    /// </summary>
    [TencentcloudResourceType("tencentcloud:Mdl/streamLiveInput:StreamLiveInput")]
    public partial class StreamLiveInput : Pulumi.CustomResource
    {
        /// <summary>
        /// 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.
        /// </summary>
        [Output("inputSettings")]
        public Output<ImmutableArray<Outputs.StreamLiveInputInputSetting>> InputSettings { get; private set; } = null!;

        /// <summary>
        /// Input name, which can contain 1-32 case-sensitive letters, digits, and underscores and must be unique at the region level.
        /// </summary>
        [Output("name")]
        public Output<string> Name { get; private set; } = null!;

        /// <summary>
        /// ID of the input security group to attachYou can attach only one security group to an input.
        /// </summary>
        [Output("securityGroupIds")]
        public Output<ImmutableArray<string>> SecurityGroupIds { get; private set; } = null!;

        /// <summary>
        /// Input typeValid values: `RTMP_PUSH`, `RTP_PUSH`, `UDP_PUSH`, `RTMP_PULL`, `HLS_PULL`, `MP4_PULL`.
        /// </summary>
        [Output("type")]
        public Output<string> Type { get; private set; } = null!;


        /// <summary>
        /// Create a StreamLiveInput resource with the given unique name, arguments, and options.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resource</param>
        /// <param name="args">The arguments used to populate this resource's properties</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public StreamLiveInput(string name, StreamLiveInputArgs args, CustomResourceOptions? options = null)
            : base("tencentcloud:Mdl/streamLiveInput:StreamLiveInput", name, args ?? new StreamLiveInputArgs(), MakeResourceOptions(options, ""))
        {
        }

        private StreamLiveInput(string name, Input<string> id, StreamLiveInputState? state = null, CustomResourceOptions? options = null)
            : base("tencentcloud:Mdl/streamLiveInput:StreamLiveInput", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
                PluginDownloadURL = "github://api.github.com/tencentcloudstack",
            };
            var merged = CustomResourceOptions.Merge(defaultOptions, options);
            // Override the ID if one was specified for consistency with other language SDKs.
            merged.Id = id ?? merged.Id;
            return merged;
        }
        /// <summary>
        /// Get an existing StreamLiveInput resource's state with the given name, ID, and optional extra
        /// properties used to qualify the lookup.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resulting resource.</param>
        /// <param name="id">The unique provider ID of the resource to lookup.</param>
        /// <param name="state">Any extra arguments used during the lookup.</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public static StreamLiveInput Get(string name, Input<string> id, StreamLiveInputState? state = null, CustomResourceOptions? options = null)
        {
            return new StreamLiveInput(name, id, state, options);
        }
    }

    public sealed class StreamLiveInputArgs : Pulumi.ResourceArgs
    {
        [Input("inputSettings")]
        private InputList<Inputs.StreamLiveInputInputSettingArgs>? _inputSettings;

        /// <summary>
        /// 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.
        /// </summary>
        public InputList<Inputs.StreamLiveInputInputSettingArgs> InputSettings
        {
            get => _inputSettings ?? (_inputSettings = new InputList<Inputs.StreamLiveInputInputSettingArgs>());
            set => _inputSettings = value;
        }

        /// <summary>
        /// Input name, which can contain 1-32 case-sensitive letters, digits, and underscores and must be unique at the region level.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        [Input("securityGroupIds")]
        private InputList<string>? _securityGroupIds;

        /// <summary>
        /// ID of the input security group to attachYou can attach only one security group to an input.
        /// </summary>
        public InputList<string> SecurityGroupIds
        {
            get => _securityGroupIds ?? (_securityGroupIds = new InputList<string>());
            set => _securityGroupIds = value;
        }

        /// <summary>
        /// Input typeValid values: `RTMP_PUSH`, `RTP_PUSH`, `UDP_PUSH`, `RTMP_PULL`, `HLS_PULL`, `MP4_PULL`.
        /// </summary>
        [Input("type", required: true)]
        public Input<string> Type { get; set; } = null!;

        public StreamLiveInputArgs()
        {
        }
    }

    public sealed class StreamLiveInputState : Pulumi.ResourceArgs
    {
        [Input("inputSettings")]
        private InputList<Inputs.StreamLiveInputInputSettingGetArgs>? _inputSettings;

        /// <summary>
        /// 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.
        /// </summary>
        public InputList<Inputs.StreamLiveInputInputSettingGetArgs> InputSettings
        {
            get => _inputSettings ?? (_inputSettings = new InputList<Inputs.StreamLiveInputInputSettingGetArgs>());
            set => _inputSettings = value;
        }

        /// <summary>
        /// Input name, which can contain 1-32 case-sensitive letters, digits, and underscores and must be unique at the region level.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        [Input("securityGroupIds")]
        private InputList<string>? _securityGroupIds;

        /// <summary>
        /// ID of the input security group to attachYou can attach only one security group to an input.
        /// </summary>
        public InputList<string> SecurityGroupIds
        {
            get => _securityGroupIds ?? (_securityGroupIds = new InputList<string>());
            set => _securityGroupIds = value;
        }

        /// <summary>
        /// Input typeValid values: `RTMP_PUSH`, `RTP_PUSH`, `UDP_PUSH`, `RTMP_PULL`, `HLS_PULL`, `MP4_PULL`.
        /// </summary>
        [Input("type")]
        public Input<string>? Type { get; set; }

        public StreamLiveInputState()
        {
        }
    }
}
