<gh_stars>0// *** 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_trans_peer** resource allows the creation and management of Aviatrix [Encrypted Transitive Peering](https://docs.aviatrix.com/HowTos/TransPeering.html).
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using Pulumi;
    /// using Aviatrix = Pulumi.Aviatrix;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     // Create an Aviatrix AWS Transitive Peering
    ///     var testTransPeer = new Aviatrix.AviatrixTransPeer("testTransPeer", new()
    ///     {
    ///         Nexthop = "avtx-us-east-gw2",
    ///         ReachableCidr = "10.152.0.0/16",
    ///         Source = "avtx-us-east-gw1",
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// **trans_peer** can be imported using the `source`, `nexthop` and `reachable_cidr`, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import aviatrix:index/aviatrixTransPeer:AviatrixTransPeer test source~nexthop~reachable_cidr
    /// ```
    /// </summary>
    [AviatrixResourceType("aviatrix:index/aviatrixTransPeer:AviatrixTransPeer")]
    public partial class AviatrixTransPeer : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Name of nexthop gateway.
        /// </summary>
        [Output("nexthop")]
        public Output<string> Nexthop { get; private set; } = null!;

        /// <summary>
        /// Destination CIDR.
        /// </summary>
        [Output("reachableCidr")]
        public Output<string> ReachableCidr { get; private set; } = null!;

        /// <summary>
        /// Name of Source gateway.
        /// </summary>
        [Output("source")]
        public Output<string> Source { get; private set; } = null!;


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

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

    public sealed class AviatrixTransPeerArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Name of nexthop gateway.
        /// </summary>
        [Input("nexthop", required: true)]
        public Input<string> Nexthop { get; set; } = null!;

        /// <summary>
        /// Destination CIDR.
        /// </summary>
        [Input("reachableCidr", required: true)]
        public Input<string> ReachableCidr { get; set; } = null!;

        /// <summary>
        /// Name of Source gateway.
        /// </summary>
        [Input("source", required: true)]
        public Input<string> Source { get; set; } = null!;

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

    public sealed class AviatrixTransPeerState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Name of nexthop gateway.
        /// </summary>
        [Input("nexthop")]
        public Input<string>? Nexthop { get; set; }

        /// <summary>
        /// Destination CIDR.
        /// </summary>
        [Input("reachableCidr")]
        public Input<string>? ReachableCidr { get; set; }

        /// <summary>
        /// Name of Source gateway.
        /// </summary>
        [Input("source")]
        public Input<string>? Source { get; set; }

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