<reponame>Dwonczykj/gember_deploy// *** 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.Clb
{
    /// <summary>
    /// Provide a resource to create a SnatIp of CLB instance.
    /// 
    /// &gt; **NOTE:** Target CLB instance must enable `snat_pro` before creating snat ips.
    /// **NOTE:** Dynamic allocate IP doesn't support for now.
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using Pulumi;
    /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
    /// 
    /// class MyStack : Stack
    /// {
    ///     public MyStack()
    ///     {
    ///         var snatTest = new Tencentcloud.Clb.Instance("snatTest", new Tencentcloud.Clb.InstanceArgs
    ///         {
    ///             NetworkType = "OPEN",
    ///             ClbName = "tf-clb-snat-test",
    ///         });
    ///         var foo = new Tencentcloud.Clb.SnatIp("foo", new Tencentcloud.Clb.SnatIpArgs
    ///         {
    ///             ClbId = snatTest.Id,
    ///             Ips = 
    ///             {
    ///                 new Tencentcloud.Clb.Inputs.SnatIpIpArgs
    ///                 {
    ///                     SubnetId = "subnet-12345678",
    ///                     Ip = "172.16.0.1",
    ///                 },
    ///                 new Tencentcloud.Clb.Inputs.SnatIpIpArgs
    ///                 {
    ///                     SubnetId = "subnet-12345678",
    ///                     Ip = "172.16.0.2",
    ///                 },
    ///             },
    ///         });
    ///     }
    /// 
    /// }
    /// ```
    /// 
    /// ## Import
    /// 
    /// ClbSnatIp instance can be imported by clb instance id, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import tencentcloud:Clb/snatIp:SnatIp test clb_id
    /// ```
    /// </summary>
    [TencentcloudResourceType("tencentcloud:Clb/snatIp:SnatIp")]
    public partial class SnatIp : Pulumi.CustomResource
    {
        /// <summary>
        /// CLB instance ID.
        /// </summary>
        [Output("clbId")]
        public Output<string> ClbId { get; private set; } = null!;

        /// <summary>
        /// Snat IP address config.
        /// </summary>
        [Output("ips")]
        public Output<ImmutableArray<Outputs.SnatIpIp>> Ips { get; private set; } = null!;


        /// <summary>
        /// Create a SnatIp 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 SnatIp(string name, SnatIpArgs args, CustomResourceOptions? options = null)
            : base("tencentcloud:Clb/snatIp:SnatIp", name, args ?? new SnatIpArgs(), MakeResourceOptions(options, ""))
        {
        }

        private SnatIp(string name, Input<string> id, SnatIpState? state = null, CustomResourceOptions? options = null)
            : base("tencentcloud:Clb/snatIp:SnatIp", 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 SnatIp 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 SnatIp Get(string name, Input<string> id, SnatIpState? state = null, CustomResourceOptions? options = null)
        {
            return new SnatIp(name, id, state, options);
        }
    }

    public sealed class SnatIpArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// CLB instance ID.
        /// </summary>
        [Input("clbId", required: true)]
        public Input<string> ClbId { get; set; } = null!;

        [Input("ips")]
        private InputList<Inputs.SnatIpIpArgs>? _ips;

        /// <summary>
        /// Snat IP address config.
        /// </summary>
        public InputList<Inputs.SnatIpIpArgs> Ips
        {
            get => _ips ?? (_ips = new InputList<Inputs.SnatIpIpArgs>());
            set => _ips = value;
        }

        public SnatIpArgs()
        {
        }
    }

    public sealed class SnatIpState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// CLB instance ID.
        /// </summary>
        [Input("clbId")]
        public Input<string>? ClbId { get; set; }

        [Input("ips")]
        private InputList<Inputs.SnatIpIpGetArgs>? _ips;

        /// <summary>
        /// Snat IP address config.
        /// </summary>
        public InputList<Inputs.SnatIpIpGetArgs> Ips
        {
            get => _ips ?? (_ips = new InputList<Inputs.SnatIpIpGetArgs>());
            set => _ips = value;
        }

        public SnatIpState()
        {
        }
    }
}
