// *** 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.Aviatrix
{
    /// <summary>
    /// The **aviatrix_segmentation_network_domain_association** resource handles creation of [Transit Segmentation](https://docs.aviatrix.com/HowTos/transit_segmentation_faq.html) Network Domain and Transit Gateway Attachment Associations.
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using Pulumi;
    /// using Aviatrix = Pulumi.Aviatrix;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     // Create an Aviatrix Segmentation Network Domain Association
    ///     var testSegmentationNetworkDomainAssociation = new Aviatrix.AviatrixSegmentationNetworkDomainAssociation("testSegmentationNetworkDomainAssociation", new()
    ///     {
    ///         AttachmentName = "attachment-name",
    ///         NetworkDomainName = "network-domain-name",
    ///         TransitGatewayName = "transit-gw-name",
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// **aviatrix_segmentation_network_domain_association** can be imported using `transit_gateway_name`, `network_domain_name` and `attachment_name` separated by a `~` e.g.
    /// 
    /// ```sh
    ///  $ pulumi import aviatrix:index/aviatrixSegmentationNetworkDomainAssociation:AviatrixSegmentationNetworkDomainAssociation test transit_gateway_name~network_domain_name~attachment_name
    /// ```
    /// </summary>
    [AviatrixResourceType("aviatrix:index/aviatrixSegmentationNetworkDomainAssociation:AviatrixSegmentationNetworkDomainAssociation")]
    public partial class AviatrixSegmentationNetworkDomainAssociation : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
        /// </summary>
        [Output("attachmentName")]
        public Output<string> AttachmentName { get; private set; } = null!;

        /// <summary>
        /// Name of the Segmentation Network Domain.
        /// </summary>
        [Output("networkDomainName")]
        public Output<string> NetworkDomainName { get; private set; } = null!;

        /// <summary>
        /// Name of the Transit Gateway.
        /// </summary>
        [Output("transitGatewayName")]
        public Output<string> TransitGatewayName { get; private set; } = null!;


        /// <summary>
        /// Create a AviatrixSegmentationNetworkDomainAssociation 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 AviatrixSegmentationNetworkDomainAssociation(string name, AviatrixSegmentationNetworkDomainAssociationArgs args, CustomResourceOptions? options = null)
            : base("aviatrix:index/aviatrixSegmentationNetworkDomainAssociation:AviatrixSegmentationNetworkDomainAssociation", name, args ?? new AviatrixSegmentationNetworkDomainAssociationArgs(), MakeResourceOptions(options, ""))
        {
        }

        private AviatrixSegmentationNetworkDomainAssociation(string name, Input<string> id, AviatrixSegmentationNetworkDomainAssociationState? state = null, CustomResourceOptions? options = null)
            : base("aviatrix:index/aviatrixSegmentationNetworkDomainAssociation:AviatrixSegmentationNetworkDomainAssociation", 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/astipkovits",
            };
            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 AviatrixSegmentationNetworkDomainAssociation 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 AviatrixSegmentationNetworkDomainAssociation Get(string name, Input<string> id, AviatrixSegmentationNetworkDomainAssociationState? state = null, CustomResourceOptions? options = null)
        {
            return new AviatrixSegmentationNetworkDomainAssociation(name, id, state, options);
        }
    }

    public sealed class AviatrixSegmentationNetworkDomainAssociationArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
        /// </summary>
        [Input("attachmentName", required: true)]
        public Input<string> AttachmentName { get; set; } = null!;

        /// <summary>
        /// Name of the Segmentation Network Domain.
        /// </summary>
        [Input("networkDomainName", required: true)]
        public Input<string> NetworkDomainName { get; set; } = null!;

        /// <summary>
        /// Name of the Transit Gateway.
        /// </summary>
        [Input("transitGatewayName", required: true)]
        public Input<string> TransitGatewayName { get; set; } = null!;

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

    public sealed class AviatrixSegmentationNetworkDomainAssociationState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
        /// </summary>
        [Input("attachmentName")]
        public Input<string>? AttachmentName { get; set; }

        /// <summary>
        /// Name of the Segmentation Network Domain.
        /// </summary>
        [Input("networkDomainName")]
        public Input<string>? NetworkDomainName { get; set; }

        /// <summary>
        /// Name of the Transit Gateway.
        /// </summary>
        [Input("transitGatewayName")]
        public Input<string>? TransitGatewayName { get; set; }

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