<filename>sdk/dotnet/AviatrixAwsTgwConnect.cs// *** 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_aws_tgw_connect** resource allows the creation and management of AWS TGW Connect connections. To create
    /// and manage TGW Connect peers, please use `aviatrix.AviatrixAwsTgwConnectPeer` resources. This resource is available as of
    /// provider version R2.18.1+.
    /// 
    /// &gt; **NOTE:** Before creating an AWS TGW Connect, the AWS TGW must have an attached VPC via
    /// the `aviatrix.AviatrixAwsTgwVpcAttachment` resource. Also, the AWS TGW must have configured CIDRs via
    /// the `aviatrix.AviatrixAwsTgw` `cidrs` attribute.
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using Pulumi;
    /// using Aviatrix = Pulumi.Aviatrix;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     // Create an Aviatrix AWS TGW Connect
    ///     var testAwsTgwConnect = new Aviatrix.AviatrixAwsTgwConnect("testAwsTgwConnect", new()
    ///     {
    ///         TgwName = aviatrix_aws_tgw.Test_aws_tgw.Tgw_name,
    ///         ConnectionName = "aws-tgw-connect",
    ///         TransportVpcId = aviatrix_aws_tgw_vpc_attachment.Test_aws_tgw_vpc_attachment.Vpc_id,
    ///         NetworkDomainName = aviatrix_aws_tgw_vpc_attachment.Test_aws_tgw_vpc_attachment.Network_domain_name,
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// **aws_tgw_connect** can be imported using the `tgw_name` and `connection_name`, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import aviatrix:index/aviatrixAwsTgwConnect:AviatrixAwsTgwConnect test tgw_name~~connection_name
    /// ```
    /// </summary>
    [AviatrixResourceType("aviatrix:index/aviatrixAwsTgwConnect:AviatrixAwsTgwConnect")]
    public partial class AviatrixAwsTgwConnect : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Connect Attachment ID.
        /// </summary>
        [Output("connectAttachmentId")]
        public Output<string> ConnectAttachmentId { get; private set; } = null!;

        /// <summary>
        /// Connection name.
        /// </summary>
        [Output("connectionName")]
        public Output<string> ConnectionName { get; private set; } = null!;

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

        /// <summary>
        /// Security Domain name.
        /// </summary>
        [Output("securityDomainName")]
        public Output<string?> SecurityDomainName { get; private set; } = null!;

        /// <summary>
        /// AWS TGW name.
        /// </summary>
        [Output("tgwName")]
        public Output<string> TgwName { get; private set; } = null!;

        /// <summary>
        /// Transport Attachment ID.
        /// </summary>
        [Output("transportAttachmentId")]
        public Output<string> TransportAttachmentId { get; private set; } = null!;

        /// <summary>
        /// Transport Attachment VPC ID.
        /// </summary>
        [Output("transportVpcId")]
        public Output<string> TransportVpcId { get; private set; } = null!;


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

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

    public sealed class AviatrixAwsTgwConnectArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Connection name.
        /// </summary>
        [Input("connectionName", required: true)]
        public Input<string> ConnectionName { get; set; } = null!;

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

        /// <summary>
        /// Security Domain name.
        /// </summary>
        [Input("securityDomainName")]
        public Input<string>? SecurityDomainName { get; set; }

        /// <summary>
        /// AWS TGW name.
        /// </summary>
        [Input("tgwName", required: true)]
        public Input<string> TgwName { get; set; } = null!;

        /// <summary>
        /// Transport Attachment VPC ID.
        /// </summary>
        [Input("transportVpcId", required: true)]
        public Input<string> TransportVpcId { get; set; } = null!;

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

    public sealed class AviatrixAwsTgwConnectState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Connect Attachment ID.
        /// </summary>
        [Input("connectAttachmentId")]
        public Input<string>? ConnectAttachmentId { get; set; }

        /// <summary>
        /// Connection name.
        /// </summary>
        [Input("connectionName")]
        public Input<string>? ConnectionName { get; set; }

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

        /// <summary>
        /// Security Domain name.
        /// </summary>
        [Input("securityDomainName")]
        public Input<string>? SecurityDomainName { get; set; }

        /// <summary>
        /// AWS TGW name.
        /// </summary>
        [Input("tgwName")]
        public Input<string>? TgwName { get; set; }

        /// <summary>
        /// Transport Attachment ID.
        /// </summary>
        [Input("transportAttachmentId")]
        public Input<string>? TransportAttachmentId { get; set; }

        /// <summary>
        /// Transport Attachment VPC ID.
        /// </summary>
        [Input("transportVpcId")]
        public Input<string>? TransportVpcId { get; set; }

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