// *** 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_edge_spoke_transit_attachment** resource allows the creation and management of Aviatrix Edge as a Spoke to Transit gateway attachments. This resource is available as of provider version R2.23+.
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using Pulumi;
    /// using Aviatrix = Pulumi.Aviatrix;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     // Create an Aviatrix Edge as a Spoke Transit Attachment
    ///     var testAttachment = new Aviatrix.AviatrixEdgeSpokeTransitAttachment("testAttachment", new()
    ///     {
    ///         SpokeGwName = "edge-as-a-spoke",
    ///         TransitGwName = "transit-gw",
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// **spoke_transit_attachment** can be imported using the `spoke_gw_name` and `transit_gw_name`, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import aviatrix:index/aviatrixEdgeSpokeTransitAttachment:AviatrixEdgeSpokeTransitAttachment test spoke_gw_name~transit_gw_name
    /// ```
    /// </summary>
    [AviatrixResourceType("aviatrix:index/aviatrixEdgeSpokeTransitAttachment:AviatrixEdgeSpokeTransitAttachment")]
    public partial class AviatrixEdgeSpokeTransitAttachment : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Switch to enable insane mode. Valid values: true, false. Default: false.
        /// </summary>
        [Output("enableInsaneMode")]
        public Output<bool?> EnableInsaneMode { get; private set; } = null!;

        /// <summary>
        /// Switch to enable jumbo frame. Valid values: true, false. Default: false.
        /// </summary>
        [Output("enableJumboFrame")]
        public Output<bool?> EnableJumboFrame { get; private set; } = null!;

        /// <summary>
        /// Switch to enable over the private network. Valid values: true, false. Default: true.
        /// </summary>
        [Output("enableOverPrivateNetwork")]
        public Output<bool?> EnableOverPrivateNetwork { get; private set; } = null!;

        /// <summary>
        /// Insane mode tunnel number. Default: 0.
        /// </summary>
        [Output("insaneModeTunnelNumber")]
        public Output<int?> InsaneModeTunnelNumber { get; private set; } = null!;

        /// <summary>
        /// Name of the Edge as a Spoke to attach to transit network.
        /// </summary>
        [Output("spokeGwName")]
        public Output<string> SpokeGwName { get; private set; } = null!;

        /// <summary>
        /// Connection based AS Path Prepend. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on the Edge as a Spoke.
        /// </summary>
        [Output("spokePrependAsPaths")]
        public Output<ImmutableArray<string>> SpokePrependAsPaths { get; private set; } = null!;

        /// <summary>
        /// Name of the transit gateway to attach the Edge as a Spoke to.
        /// </summary>
        [Output("transitGwName")]
        public Output<string> TransitGwName { get; private set; } = null!;

        /// <summary>
        /// Connection based AS Path Prepend. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on the Transit Gateway.
        /// </summary>
        [Output("transitPrependAsPaths")]
        public Output<ImmutableArray<string>> TransitPrependAsPaths { get; private set; } = null!;


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

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

    public sealed class AviatrixEdgeSpokeTransitAttachmentArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Switch to enable insane mode. Valid values: true, false. Default: false.
        /// </summary>
        [Input("enableInsaneMode")]
        public Input<bool>? EnableInsaneMode { get; set; }

        /// <summary>
        /// Switch to enable jumbo frame. Valid values: true, false. Default: false.
        /// </summary>
        [Input("enableJumboFrame")]
        public Input<bool>? EnableJumboFrame { get; set; }

        /// <summary>
        /// Switch to enable over the private network. Valid values: true, false. Default: true.
        /// </summary>
        [Input("enableOverPrivateNetwork")]
        public Input<bool>? EnableOverPrivateNetwork { get; set; }

        /// <summary>
        /// Insane mode tunnel number. Default: 0.
        /// </summary>
        [Input("insaneModeTunnelNumber")]
        public Input<int>? InsaneModeTunnelNumber { get; set; }

        /// <summary>
        /// Name of the Edge as a Spoke to attach to transit network.
        /// </summary>
        [Input("spokeGwName", required: true)]
        public Input<string> SpokeGwName { get; set; } = null!;

        [Input("spokePrependAsPaths")]
        private InputList<string>? _spokePrependAsPaths;

        /// <summary>
        /// Connection based AS Path Prepend. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on the Edge as a Spoke.
        /// </summary>
        public InputList<string> SpokePrependAsPaths
        {
            get => _spokePrependAsPaths ?? (_spokePrependAsPaths = new InputList<string>());
            set => _spokePrependAsPaths = value;
        }

        /// <summary>
        /// Name of the transit gateway to attach the Edge as a Spoke to.
        /// </summary>
        [Input("transitGwName", required: true)]
        public Input<string> TransitGwName { get; set; } = null!;

        [Input("transitPrependAsPaths")]
        private InputList<string>? _transitPrependAsPaths;

        /// <summary>
        /// Connection based AS Path Prepend. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on the Transit Gateway.
        /// </summary>
        public InputList<string> TransitPrependAsPaths
        {
            get => _transitPrependAsPaths ?? (_transitPrependAsPaths = new InputList<string>());
            set => _transitPrependAsPaths = value;
        }

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

    public sealed class AviatrixEdgeSpokeTransitAttachmentState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Switch to enable insane mode. Valid values: true, false. Default: false.
        /// </summary>
        [Input("enableInsaneMode")]
        public Input<bool>? EnableInsaneMode { get; set; }

        /// <summary>
        /// Switch to enable jumbo frame. Valid values: true, false. Default: false.
        /// </summary>
        [Input("enableJumboFrame")]
        public Input<bool>? EnableJumboFrame { get; set; }

        /// <summary>
        /// Switch to enable over the private network. Valid values: true, false. Default: true.
        /// </summary>
        [Input("enableOverPrivateNetwork")]
        public Input<bool>? EnableOverPrivateNetwork { get; set; }

        /// <summary>
        /// Insane mode tunnel number. Default: 0.
        /// </summary>
        [Input("insaneModeTunnelNumber")]
        public Input<int>? InsaneModeTunnelNumber { get; set; }

        /// <summary>
        /// Name of the Edge as a Spoke to attach to transit network.
        /// </summary>
        [Input("spokeGwName")]
        public Input<string>? SpokeGwName { get; set; }

        [Input("spokePrependAsPaths")]
        private InputList<string>? _spokePrependAsPaths;

        /// <summary>
        /// Connection based AS Path Prepend. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on the Edge as a Spoke.
        /// </summary>
        public InputList<string> SpokePrependAsPaths
        {
            get => _spokePrependAsPaths ?? (_spokePrependAsPaths = new InputList<string>());
            set => _spokePrependAsPaths = value;
        }

        /// <summary>
        /// Name of the transit gateway to attach the Edge as a Spoke to.
        /// </summary>
        [Input("transitGwName")]
        public Input<string>? TransitGwName { get; set; }

        [Input("transitPrependAsPaths")]
        private InputList<string>? _transitPrependAsPaths;

        /// <summary>
        /// Connection based AS Path Prepend. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on the Transit Gateway.
        /// </summary>
        public InputList<string> TransitPrependAsPaths
        {
            get => _transitPrependAsPaths ?? (_transitPrependAsPaths = new InputList<string>());
            set => _transitPrependAsPaths = value;
        }

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