// *** 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;

namespace Pulumi.AliCloud.Alb
{
    /// <summary>
    /// &gt; **NOTE:** Available in v1.166.0+.
    /// 
    /// For information about acl entry attachment and how to use it, see [Configure an acl entry](https://www.alibabacloud.com/help/en/server-load-balancer/latest/addentriestoacl).
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using Pulumi;
    /// using AliCloud = Pulumi.AliCloud;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     var config = new Config();
    ///     var name = config.Get("name") ?? "terraformalbaclconfig";
    ///     var defaultResourceGroups = AliCloud.ResourceManager.GetResourceGroups.Invoke();
    /// 
    ///     var defaultAcl = new AliCloud.Alb.Acl("defaultAcl", new()
    ///     {
    ///         AclName = name,
    ///         ResourceGroupId = defaultResourceGroups.Apply(getResourceGroupsResult =&gt; getResourceGroupsResult.Groups[0]?.Id),
    ///     });
    /// 
    ///     var defaultAclEntryAttachment = new AliCloud.Alb.AclEntryAttachment("defaultAclEntryAttachment", new()
    ///     {
    ///         AclId = defaultAcl.Id,
    ///         Entry = "168.10.10.0/24",
    ///         Description = name,
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// Acl entry attachment can be imported using the id, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import alicloud:alb/aclEntryAttachment:AclEntryAttachment example &lt;acl_id&gt;:&lt;entry&gt;
    /// ```
    /// </summary>
    [AliCloudResourceType("alicloud:alb/aclEntryAttachment:AclEntryAttachment")]
    public partial class AclEntryAttachment : global::Pulumi.CustomResource
    {
        /// <summary>
        /// The ID of the Acl.
        /// </summary>
        [Output("aclId")]
        public Output<string> AclId { get; private set; } = null!;

        /// <summary>
        /// The description of the entry.
        /// </summary>
        [Output("description")]
        public Output<string?> Description { get; private set; } = null!;

        /// <summary>
        /// The CIDR blocks.
        /// </summary>
        [Output("entry")]
        public Output<string> Entry { get; private set; } = null!;

        /// <summary>
        /// The Status of the resource.
        /// </summary>
        [Output("status")]
        public Output<string> Status { get; private set; } = null!;


        /// <summary>
        /// Create a AclEntryAttachment 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 AclEntryAttachment(string name, AclEntryAttachmentArgs args, CustomResourceOptions? options = null)
            : base("alicloud:alb/aclEntryAttachment:AclEntryAttachment", name, args ?? new AclEntryAttachmentArgs(), MakeResourceOptions(options, ""))
        {
        }

        private AclEntryAttachment(string name, Input<string> id, AclEntryAttachmentState? state = null, CustomResourceOptions? options = null)
            : base("alicloud:alb/aclEntryAttachment:AclEntryAttachment", 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/rhysmdnz/pulumi-alicloud",
            };
            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 AclEntryAttachment 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 AclEntryAttachment Get(string name, Input<string> id, AclEntryAttachmentState? state = null, CustomResourceOptions? options = null)
        {
            return new AclEntryAttachment(name, id, state, options);
        }
    }

    public sealed class AclEntryAttachmentArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The ID of the Acl.
        /// </summary>
        [Input("aclId", required: true)]
        public Input<string> AclId { get; set; } = null!;

        /// <summary>
        /// The description of the entry.
        /// </summary>
        [Input("description")]
        public Input<string>? Description { get; set; }

        /// <summary>
        /// The CIDR blocks.
        /// </summary>
        [Input("entry", required: true)]
        public Input<string> Entry { get; set; } = null!;

        public AclEntryAttachmentArgs()
        {
        }
        public static new AclEntryAttachmentArgs Empty => new AclEntryAttachmentArgs();
    }

    public sealed class AclEntryAttachmentState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The ID of the Acl.
        /// </summary>
        [Input("aclId")]
        public Input<string>? AclId { get; set; }

        /// <summary>
        /// The description of the entry.
        /// </summary>
        [Input("description")]
        public Input<string>? Description { get; set; }

        /// <summary>
        /// The CIDR blocks.
        /// </summary>
        [Input("entry")]
        public Input<string>? Entry { get; set; }

        /// <summary>
        /// The Status of the resource.
        /// </summary>
        [Input("status")]
        public Input<string>? Status { get; set; }

        public AclEntryAttachmentState()
        {
        }
        public static new AclEntryAttachmentState Empty => new AclEntryAttachmentState();
    }
}
