// *** 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_connection_policy** resource handles creation of [Transit Segmentation](https://docs.aviatrix.com/HowTos/transit_segmentation_faq.html) Network Domain Connection Policies.
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using Pulumi;
    /// using Aviatrix = Pulumi.Aviatrix;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     // Create an Aviatrix Segmentation Network Domain
    ///     var testSegmentationNetworkDomainConnectionPolicy = new Aviatrix.AviatrixSegmentationNetworkDomainConnectionPolicy("testSegmentationNetworkDomainConnectionPolicy", new()
    ///     {
    ///         DomainName1 = "domain-a",
    ///         DomainName2 = "domain-b",
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// **aviatrix_segmentation_network_domain_connection_policy** can be imported using `domain_name_1` and `domain_name_2` separated by a `~`, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import aviatrix:index/aviatrixSegmentationNetworkDomainConnectionPolicy:AviatrixSegmentationNetworkDomainConnectionPolicy test domain_name_1~domain_name_2
    /// ```
    /// </summary>
    [AviatrixResourceType("aviatrix:index/aviatrixSegmentationNetworkDomainConnectionPolicy:AviatrixSegmentationNetworkDomainConnectionPolicy")]
    public partial class AviatrixSegmentationNetworkDomainConnectionPolicy : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Name of the Network Domain to connect to Domain 2.
        /// </summary>
        [Output("domainName1")]
        public Output<string> DomainName1 { get; private set; } = null!;

        /// <summary>
        /// Name of the Network Domain to connect to Domain 1.
        /// </summary>
        [Output("domainName2")]
        public Output<string> DomainName2 { get; private set; } = null!;


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

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

    public sealed class AviatrixSegmentationNetworkDomainConnectionPolicyArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Name of the Network Domain to connect to Domain 2.
        /// </summary>
        [Input("domainName1", required: true)]
        public Input<string> DomainName1 { get; set; } = null!;

        /// <summary>
        /// Name of the Network Domain to connect to Domain 1.
        /// </summary>
        [Input("domainName2", required: true)]
        public Input<string> DomainName2 { get; set; } = null!;

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

    public sealed class AviatrixSegmentationNetworkDomainConnectionPolicyState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Name of the Network Domain to connect to Domain 2.
        /// </summary>
        [Input("domainName1")]
        public Input<string>? DomainName1 { get; set; }

        /// <summary>
        /// Name of the Network Domain to connect to Domain 1.
        /// </summary>
        [Input("domainName2")]
        public Input<string>? DomainName2 { get; set; }

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