aviatrix.AviatrixSpokeTransitAttachment

Import

spoke_transit_attachment can be imported using the spoke_gw_name and transit_gw_name, e.g.

 $ pulumi import aviatrix:index/aviatrixSpokeTransitAttachment:AviatrixSpokeTransitAttachment test spoke_gw_name~transit_gw_name

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;

return await Deployment.RunAsync(() => 
{
    // Create an Aviatrix Spoke Transit Attachment
    var testAttachment = new Aviatrix.AviatrixSpokeTransitAttachment("testAttachment", new()
    {
        RouteTables = new[]
        {
            "rtb-737d540c",
            "rtb-626d045c",
        },
        SpokeGwName = "spoke-gw",
        TransitGwName = "transit-gw",
    });

});
package main

import (
	"github.com/astipkovits/pulumi-aviatrix/sdk/go/aviatrix"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := aviatrix.NewAviatrixSpokeTransitAttachment(ctx, "testAttachment", &aviatrix.AviatrixSpokeTransitAttachmentArgs{
			RouteTables: pulumi.StringArray{
				pulumi.String("rtb-737d540c"),
				pulumi.String("rtb-626d045c"),
			},
			SpokeGwName:   pulumi.String("spoke-gw"),
			TransitGwName: pulumi.String("transit-gw"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aviatrix.AviatrixSpokeTransitAttachment;
import com.pulumi.aviatrix.AviatrixSpokeTransitAttachmentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var testAttachment = new AviatrixSpokeTransitAttachment("testAttachment", AviatrixSpokeTransitAttachmentArgs.builder()        
            .routeTables(            
                "rtb-737d540c",
                "rtb-626d045c")
            .spokeGwName("spoke-gw")
            .transitGwName("transit-gw")
            .build());

    }
}
import pulumi
import pulumi_aviatrix as aviatrix

# Create an Aviatrix Spoke Transit Attachment
test_attachment = aviatrix.AviatrixSpokeTransitAttachment("testAttachment",
    route_tables=[
        "rtb-737d540c",
        "rtb-626d045c",
    ],
    spoke_gw_name="spoke-gw",
    transit_gw_name="transit-gw")
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";

// Create an Aviatrix Spoke Transit Attachment
const testAttachment = new aviatrix.AviatrixSpokeTransitAttachment("test_attachment", {
    routeTables: [
        "rtb-737d540c",
        "rtb-626d045c",
    ],
    spokeGwName: "spoke-gw",
    transitGwName: "transit-gw",
});
resources:
  # Create an Aviatrix Spoke Transit Attachment
  testAttachment:
    type: aviatrix:AviatrixSpokeTransitAttachment
    properties:
      routeTables:
        - rtb-737d540c
        - rtb-626d045c
      spokeGwName: spoke-gw
      transitGwName: transit-gw

Create AviatrixSpokeTransitAttachment Resource

new AviatrixSpokeTransitAttachment(name: string, args: AviatrixSpokeTransitAttachmentArgs, opts?: CustomResourceOptions);
@overload
def AviatrixSpokeTransitAttachment(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   enable_max_performance: Optional[bool] = None,
                                   route_tables: Optional[Sequence[str]] = None,
                                   spoke_gw_name: Optional[str] = None,
                                   spoke_prepend_as_paths: Optional[Sequence[str]] = None,
                                   transit_gw_name: Optional[str] = None,
                                   transit_prepend_as_paths: Optional[Sequence[str]] = None)
@overload
def AviatrixSpokeTransitAttachment(resource_name: str,
                                   args: AviatrixSpokeTransitAttachmentArgs,
                                   opts: Optional[ResourceOptions] = None)
func NewAviatrixSpokeTransitAttachment(ctx *Context, name string, args AviatrixSpokeTransitAttachmentArgs, opts ...ResourceOption) (*AviatrixSpokeTransitAttachment, error)
public AviatrixSpokeTransitAttachment(string name, AviatrixSpokeTransitAttachmentArgs args, CustomResourceOptions? opts = null)
public AviatrixSpokeTransitAttachment(String name, AviatrixSpokeTransitAttachmentArgs args)
public AviatrixSpokeTransitAttachment(String name, AviatrixSpokeTransitAttachmentArgs args, CustomResourceOptions options)
type: aviatrix:AviatrixSpokeTransitAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AviatrixSpokeTransitAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args AviatrixSpokeTransitAttachmentArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AviatrixSpokeTransitAttachmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AviatrixSpokeTransitAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AviatrixSpokeTransitAttachmentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AviatrixSpokeTransitAttachment Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The AviatrixSpokeTransitAttachment resource accepts the following input properties:

SpokeGwName string

Name of the spoke gateway to attach to transit network.

TransitGwName string

Name of the transit gateway to attach the spoke gateway to.

EnableMaxPerformance bool

Indicates whether the maximum amount of HPE tunnels will be created. Only valid when transit and spoke gateways are each launched in Insane Mode and in the same cloud type. Default value: true. Available as of provider version R2.22.2+.

RouteTables List<string>

Learned routes will be propagated to these route tables. Example: ["rtb-212ff547","rtb-04539787"].

SpokePrependAsPaths List<string>

Connection based AS Path Prepend. Valid only for BGP connection. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on spoke_gateway_name. Available as of provider version R2.23+.

TransitPrependAsPaths List<string>

Connection based AS Path Prepend. Valid only for BGP connection. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on transit_gateway_name. Available as of provider version R2.23+.

SpokeGwName string

Name of the spoke gateway to attach to transit network.

TransitGwName string

Name of the transit gateway to attach the spoke gateway to.

EnableMaxPerformance bool

Indicates whether the maximum amount of HPE tunnels will be created. Only valid when transit and spoke gateways are each launched in Insane Mode and in the same cloud type. Default value: true. Available as of provider version R2.22.2+.

RouteTables []string

Learned routes will be propagated to these route tables. Example: ["rtb-212ff547","rtb-04539787"].

SpokePrependAsPaths []string

Connection based AS Path Prepend. Valid only for BGP connection. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on spoke_gateway_name. Available as of provider version R2.23+.

TransitPrependAsPaths []string

Connection based AS Path Prepend. Valid only for BGP connection. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on transit_gateway_name. Available as of provider version R2.23+.

spokeGwName String

Name of the spoke gateway to attach to transit network.

transitGwName String

Name of the transit gateway to attach the spoke gateway to.

enableMaxPerformance Boolean

Indicates whether the maximum amount of HPE tunnels will be created. Only valid when transit and spoke gateways are each launched in Insane Mode and in the same cloud type. Default value: true. Available as of provider version R2.22.2+.

routeTables List<String>

Learned routes will be propagated to these route tables. Example: ["rtb-212ff547","rtb-04539787"].

spokePrependAsPaths List<String>

Connection based AS Path Prepend. Valid only for BGP connection. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on spoke_gateway_name. Available as of provider version R2.23+.

transitPrependAsPaths List<String>

Connection based AS Path Prepend. Valid only for BGP connection. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on transit_gateway_name. Available as of provider version R2.23+.

spokeGwName string

Name of the spoke gateway to attach to transit network.

transitGwName string

Name of the transit gateway to attach the spoke gateway to.

enableMaxPerformance boolean

Indicates whether the maximum amount of HPE tunnels will be created. Only valid when transit and spoke gateways are each launched in Insane Mode and in the same cloud type. Default value: true. Available as of provider version R2.22.2+.

routeTables string[]

Learned routes will be propagated to these route tables. Example: ["rtb-212ff547","rtb-04539787"].

spokePrependAsPaths string[]

Connection based AS Path Prepend. Valid only for BGP connection. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on spoke_gateway_name. Available as of provider version R2.23+.

transitPrependAsPaths string[]

Connection based AS Path Prepend. Valid only for BGP connection. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on transit_gateway_name. Available as of provider version R2.23+.

spoke_gw_name str

Name of the spoke gateway to attach to transit network.

transit_gw_name str

Name of the transit gateway to attach the spoke gateway to.

enable_max_performance bool

Indicates whether the maximum amount of HPE tunnels will be created. Only valid when transit and spoke gateways are each launched in Insane Mode and in the same cloud type. Default value: true. Available as of provider version R2.22.2+.

route_tables Sequence[str]

Learned routes will be propagated to these route tables. Example: ["rtb-212ff547","rtb-04539787"].

spoke_prepend_as_paths Sequence[str]

Connection based AS Path Prepend. Valid only for BGP connection. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on spoke_gateway_name. Available as of provider version R2.23+.

transit_prepend_as_paths Sequence[str]

Connection based AS Path Prepend. Valid only for BGP connection. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on transit_gateway_name. Available as of provider version R2.23+.

spokeGwName String

Name of the spoke gateway to attach to transit network.

transitGwName String

Name of the transit gateway to attach the spoke gateway to.

enableMaxPerformance Boolean

Indicates whether the maximum amount of HPE tunnels will be created. Only valid when transit and spoke gateways are each launched in Insane Mode and in the same cloud type. Default value: true. Available as of provider version R2.22.2+.

routeTables List<String>

Learned routes will be propagated to these route tables. Example: ["rtb-212ff547","rtb-04539787"].

spokePrependAsPaths List<String>

Connection based AS Path Prepend. Valid only for BGP connection. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on spoke_gateway_name. Available as of provider version R2.23+.

transitPrependAsPaths List<String>

Connection based AS Path Prepend. Valid only for BGP connection. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on transit_gateway_name. Available as of provider version R2.23+.

Outputs

All input properties are implicitly available as output properties. Additionally, the AviatrixSpokeTransitAttachment resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

SpokeBgpEnabled bool

Indicates whether the spoke gateway is BGP enabled or not.

Id string

The provider-assigned unique ID for this managed resource.

SpokeBgpEnabled bool

Indicates whether the spoke gateway is BGP enabled or not.

id String

The provider-assigned unique ID for this managed resource.

spokeBgpEnabled Boolean

Indicates whether the spoke gateway is BGP enabled or not.

id string

The provider-assigned unique ID for this managed resource.

spokeBgpEnabled boolean

Indicates whether the spoke gateway is BGP enabled or not.

id str

The provider-assigned unique ID for this managed resource.

spoke_bgp_enabled bool

Indicates whether the spoke gateway is BGP enabled or not.

id String

The provider-assigned unique ID for this managed resource.

spokeBgpEnabled Boolean

Indicates whether the spoke gateway is BGP enabled or not.

Look up Existing AviatrixSpokeTransitAttachment Resource

Get an existing AviatrixSpokeTransitAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AviatrixSpokeTransitAttachmentState, opts?: CustomResourceOptions): AviatrixSpokeTransitAttachment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        enable_max_performance: Optional[bool] = None,
        route_tables: Optional[Sequence[str]] = None,
        spoke_bgp_enabled: Optional[bool] = None,
        spoke_gw_name: Optional[str] = None,
        spoke_prepend_as_paths: Optional[Sequence[str]] = None,
        transit_gw_name: Optional[str] = None,
        transit_prepend_as_paths: Optional[Sequence[str]] = None) -> AviatrixSpokeTransitAttachment
func GetAviatrixSpokeTransitAttachment(ctx *Context, name string, id IDInput, state *AviatrixSpokeTransitAttachmentState, opts ...ResourceOption) (*AviatrixSpokeTransitAttachment, error)
public static AviatrixSpokeTransitAttachment Get(string name, Input<string> id, AviatrixSpokeTransitAttachmentState? state, CustomResourceOptions? opts = null)
public static AviatrixSpokeTransitAttachment get(String name, Output<String> id, AviatrixSpokeTransitAttachmentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
EnableMaxPerformance bool

Indicates whether the maximum amount of HPE tunnels will be created. Only valid when transit and spoke gateways are each launched in Insane Mode and in the same cloud type. Default value: true. Available as of provider version R2.22.2+.

RouteTables List<string>

Learned routes will be propagated to these route tables. Example: ["rtb-212ff547","rtb-04539787"].

SpokeBgpEnabled bool

Indicates whether the spoke gateway is BGP enabled or not.

SpokeGwName string

Name of the spoke gateway to attach to transit network.

SpokePrependAsPaths List<string>

Connection based AS Path Prepend. Valid only for BGP connection. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on spoke_gateway_name. Available as of provider version R2.23+.

TransitGwName string

Name of the transit gateway to attach the spoke gateway to.

TransitPrependAsPaths List<string>

Connection based AS Path Prepend. Valid only for BGP connection. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on transit_gateway_name. Available as of provider version R2.23+.

EnableMaxPerformance bool

Indicates whether the maximum amount of HPE tunnels will be created. Only valid when transit and spoke gateways are each launched in Insane Mode and in the same cloud type. Default value: true. Available as of provider version R2.22.2+.

RouteTables []string

Learned routes will be propagated to these route tables. Example: ["rtb-212ff547","rtb-04539787"].

SpokeBgpEnabled bool

Indicates whether the spoke gateway is BGP enabled or not.

SpokeGwName string

Name of the spoke gateway to attach to transit network.

SpokePrependAsPaths []string

Connection based AS Path Prepend. Valid only for BGP connection. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on spoke_gateway_name. Available as of provider version R2.23+.

TransitGwName string

Name of the transit gateway to attach the spoke gateway to.

TransitPrependAsPaths []string

Connection based AS Path Prepend. Valid only for BGP connection. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on transit_gateway_name. Available as of provider version R2.23+.

enableMaxPerformance Boolean

Indicates whether the maximum amount of HPE tunnels will be created. Only valid when transit and spoke gateways are each launched in Insane Mode and in the same cloud type. Default value: true. Available as of provider version R2.22.2+.

routeTables List<String>

Learned routes will be propagated to these route tables. Example: ["rtb-212ff547","rtb-04539787"].

spokeBgpEnabled Boolean

Indicates whether the spoke gateway is BGP enabled or not.

spokeGwName String

Name of the spoke gateway to attach to transit network.

spokePrependAsPaths List<String>

Connection based AS Path Prepend. Valid only for BGP connection. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on spoke_gateway_name. Available as of provider version R2.23+.

transitGwName String

Name of the transit gateway to attach the spoke gateway to.

transitPrependAsPaths List<String>

Connection based AS Path Prepend. Valid only for BGP connection. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on transit_gateway_name. Available as of provider version R2.23+.

enableMaxPerformance boolean

Indicates whether the maximum amount of HPE tunnels will be created. Only valid when transit and spoke gateways are each launched in Insane Mode and in the same cloud type. Default value: true. Available as of provider version R2.22.2+.

routeTables string[]

Learned routes will be propagated to these route tables. Example: ["rtb-212ff547","rtb-04539787"].

spokeBgpEnabled boolean

Indicates whether the spoke gateway is BGP enabled or not.

spokeGwName string

Name of the spoke gateway to attach to transit network.

spokePrependAsPaths string[]

Connection based AS Path Prepend. Valid only for BGP connection. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on spoke_gateway_name. Available as of provider version R2.23+.

transitGwName string

Name of the transit gateway to attach the spoke gateway to.

transitPrependAsPaths string[]

Connection based AS Path Prepend. Valid only for BGP connection. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on transit_gateway_name. Available as of provider version R2.23+.

enable_max_performance bool

Indicates whether the maximum amount of HPE tunnels will be created. Only valid when transit and spoke gateways are each launched in Insane Mode and in the same cloud type. Default value: true. Available as of provider version R2.22.2+.

route_tables Sequence[str]

Learned routes will be propagated to these route tables. Example: ["rtb-212ff547","rtb-04539787"].

spoke_bgp_enabled bool

Indicates whether the spoke gateway is BGP enabled or not.

spoke_gw_name str

Name of the spoke gateway to attach to transit network.

spoke_prepend_as_paths Sequence[str]

Connection based AS Path Prepend. Valid only for BGP connection. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on spoke_gateway_name. Available as of provider version R2.23+.

transit_gw_name str

Name of the transit gateway to attach the spoke gateway to.

transit_prepend_as_paths Sequence[str]

Connection based AS Path Prepend. Valid only for BGP connection. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on transit_gateway_name. Available as of provider version R2.23+.

enableMaxPerformance Boolean

Indicates whether the maximum amount of HPE tunnels will be created. Only valid when transit and spoke gateways are each launched in Insane Mode and in the same cloud type. Default value: true. Available as of provider version R2.22.2+.

routeTables List<String>

Learned routes will be propagated to these route tables. Example: ["rtb-212ff547","rtb-04539787"].

spokeBgpEnabled Boolean

Indicates whether the spoke gateway is BGP enabled or not.

spokeGwName String

Name of the spoke gateway to attach to transit network.

spokePrependAsPaths List<String>

Connection based AS Path Prepend. Valid only for BGP connection. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on spoke_gateway_name. Available as of provider version R2.23+.

transitGwName String

Name of the transit gateway to attach the spoke gateway to.

transitPrependAsPaths List<String>

Connection based AS Path Prepend. Valid only for BGP connection. Can only use the gateway's own local AS number, repeated up to 25 times. Applies on transit_gateway_name. Available as of provider version R2.23+.

Package Details

Repository
aviatrix astipkovits/pulumi-aviatrix
License
Apache-2.0
Notes

This Pulumi package is based on the aviatrix Terraform Provider.