// *** 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.Dayu
{
    /// <summary>
    /// Provides a resource to create a antiddos ip. Only support for bgp-multip.
    /// </summary>
    [TencentcloudResourceType("tencentcloud:Dayu/ddosIpAttachmentV2:DdosIpAttachmentV2")]
    public partial class DdosIpAttachmentV2 : Pulumi.CustomResource
    {
        /// <summary>
        /// Anti-DDoS instance ID.
        /// </summary>
        [Output("bgpInstanceId")]
        public Output<string> BgpInstanceId { get; private set; } = null!;

        /// <summary>
        /// Array of IPs to bind to the Anti-DDoS instance. For Anti-DDoS Pro Single IP instance, the array contains only one IP. If there are no IPs to bind, it is empty; however, either BoundDevList or UnBoundDevList must not be empty.
        /// </summary>
        [Output("boundIpLists")]
        public Output<ImmutableArray<Outputs.DdosIpAttachmentV2BoundIpList>> BoundIpLists { get; private set; } = null!;


        /// <summary>
        /// Create a DdosIpAttachmentV2 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 DdosIpAttachmentV2(string name, DdosIpAttachmentV2Args args, CustomResourceOptions? options = null)
            : base("tencentcloud:Dayu/ddosIpAttachmentV2:DdosIpAttachmentV2", name, args ?? new DdosIpAttachmentV2Args(), MakeResourceOptions(options, ""))
        {
        }

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

    public sealed class DdosIpAttachmentV2Args : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Anti-DDoS instance ID.
        /// </summary>
        [Input("bgpInstanceId", required: true)]
        public Input<string> BgpInstanceId { get; set; } = null!;

        [Input("boundIpLists")]
        private InputList<Inputs.DdosIpAttachmentV2BoundIpListArgs>? _boundIpLists;

        /// <summary>
        /// Array of IPs to bind to the Anti-DDoS instance. For Anti-DDoS Pro Single IP instance, the array contains only one IP. If there are no IPs to bind, it is empty; however, either BoundDevList or UnBoundDevList must not be empty.
        /// </summary>
        public InputList<Inputs.DdosIpAttachmentV2BoundIpListArgs> BoundIpLists
        {
            get => _boundIpLists ?? (_boundIpLists = new InputList<Inputs.DdosIpAttachmentV2BoundIpListArgs>());
            set => _boundIpLists = value;
        }

        public DdosIpAttachmentV2Args()
        {
        }
    }

    public sealed class DdosIpAttachmentV2State : Pulumi.ResourceArgs
    {
        /// <summary>
        /// Anti-DDoS instance ID.
        /// </summary>
        [Input("bgpInstanceId")]
        public Input<string>? BgpInstanceId { get; set; }

        [Input("boundIpLists")]
        private InputList<Inputs.DdosIpAttachmentV2BoundIpListGetArgs>? _boundIpLists;

        /// <summary>
        /// Array of IPs to bind to the Anti-DDoS instance. For Anti-DDoS Pro Single IP instance, the array contains only one IP. If there are no IPs to bind, it is empty; however, either BoundDevList or UnBoundDevList must not be empty.
        /// </summary>
        public InputList<Inputs.DdosIpAttachmentV2BoundIpListGetArgs> BoundIpLists
        {
            get => _boundIpLists ?? (_boundIpLists = new InputList<Inputs.DdosIpAttachmentV2BoundIpListGetArgs>());
            set => _boundIpLists = value;
        }

        public DdosIpAttachmentV2State()
        {
        }
    }
}
