aviatrix.AviatrixEdgeSpokeTransitAttachment
Explore with Pulumi AI
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
using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;
return await Deployment.RunAsync(() =>
{
// Create an Aviatrix Edge as a Spoke Transit Attachment
var testAttachment = new Aviatrix.AviatrixEdgeSpokeTransitAttachment("testAttachment", new()
{
SpokeGwName = "edge-as-a-spoke",
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.NewAviatrixEdgeSpokeTransitAttachment(ctx, "testAttachment", &aviatrix.AviatrixEdgeSpokeTransitAttachmentArgs{
SpokeGwName: pulumi.String("edge-as-a-spoke"),
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.AviatrixEdgeSpokeTransitAttachment;
import com.pulumi.aviatrix.AviatrixEdgeSpokeTransitAttachmentArgs;
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 AviatrixEdgeSpokeTransitAttachment("testAttachment", AviatrixEdgeSpokeTransitAttachmentArgs.builder()
.spokeGwName("edge-as-a-spoke")
.transitGwName("transit-gw")
.build());
}
}
import pulumi
import pulumi_aviatrix as aviatrix
# Create an Aviatrix Edge as a Spoke Transit Attachment
test_attachment = aviatrix.AviatrixEdgeSpokeTransitAttachment("testAttachment",
spoke_gw_name="edge-as-a-spoke",
transit_gw_name="transit-gw")
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";
// Create an Aviatrix Edge as a Spoke Transit Attachment
const testAttachment = new aviatrix.AviatrixEdgeSpokeTransitAttachment("test_attachment", {
spokeGwName: "edge-as-a-spoke",
transitGwName: "transit-gw",
});
resources:
# Create an Aviatrix Edge as a Spoke Transit Attachment
testAttachment:
type: aviatrix:AviatrixEdgeSpokeTransitAttachment
properties:
spokeGwName: edge-as-a-spoke
transitGwName: transit-gw
Create AviatrixEdgeSpokeTransitAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AviatrixEdgeSpokeTransitAttachment(name: string, args: AviatrixEdgeSpokeTransitAttachmentArgs, opts?: CustomResourceOptions);
@overload
def AviatrixEdgeSpokeTransitAttachment(resource_name: str,
args: AviatrixEdgeSpokeTransitAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AviatrixEdgeSpokeTransitAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
spoke_gw_name: Optional[str] = None,
transit_gw_name: Optional[str] = None,
enable_insane_mode: Optional[bool] = None,
enable_jumbo_frame: Optional[bool] = None,
enable_over_private_network: Optional[bool] = None,
insane_mode_tunnel_number: Optional[int] = None,
spoke_prepend_as_paths: Optional[Sequence[str]] = None,
transit_prepend_as_paths: Optional[Sequence[str]] = None)
func NewAviatrixEdgeSpokeTransitAttachment(ctx *Context, name string, args AviatrixEdgeSpokeTransitAttachmentArgs, opts ...ResourceOption) (*AviatrixEdgeSpokeTransitAttachment, error)
public AviatrixEdgeSpokeTransitAttachment(string name, AviatrixEdgeSpokeTransitAttachmentArgs args, CustomResourceOptions? opts = null)
public AviatrixEdgeSpokeTransitAttachment(String name, AviatrixEdgeSpokeTransitAttachmentArgs args)
public AviatrixEdgeSpokeTransitAttachment(String name, AviatrixEdgeSpokeTransitAttachmentArgs args, CustomResourceOptions options)
type: aviatrix:AviatrixEdgeSpokeTransitAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AviatrixEdgeSpokeTransitAttachmentArgs
- 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 AviatrixEdgeSpokeTransitAttachmentArgs
- 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 AviatrixEdgeSpokeTransitAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AviatrixEdgeSpokeTransitAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AviatrixEdgeSpokeTransitAttachmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var aviatrixEdgeSpokeTransitAttachmentResource = new Aviatrix.AviatrixEdgeSpokeTransitAttachment("aviatrixEdgeSpokeTransitAttachmentResource", new()
{
SpokeGwName = "string",
TransitGwName = "string",
EnableInsaneMode = false,
EnableJumboFrame = false,
EnableOverPrivateNetwork = false,
InsaneModeTunnelNumber = 0,
SpokePrependAsPaths = new[]
{
"string",
},
TransitPrependAsPaths = new[]
{
"string",
},
});
example, err := aviatrix.NewAviatrixEdgeSpokeTransitAttachment(ctx, "aviatrixEdgeSpokeTransitAttachmentResource", &aviatrix.AviatrixEdgeSpokeTransitAttachmentArgs{
SpokeGwName: pulumi.String("string"),
TransitGwName: pulumi.String("string"),
EnableInsaneMode: pulumi.Bool(false),
EnableJumboFrame: pulumi.Bool(false),
EnableOverPrivateNetwork: pulumi.Bool(false),
InsaneModeTunnelNumber: pulumi.Int(0),
SpokePrependAsPaths: pulumi.StringArray{
pulumi.String("string"),
},
TransitPrependAsPaths: pulumi.StringArray{
pulumi.String("string"),
},
})
var aviatrixEdgeSpokeTransitAttachmentResource = new AviatrixEdgeSpokeTransitAttachment("aviatrixEdgeSpokeTransitAttachmentResource", AviatrixEdgeSpokeTransitAttachmentArgs.builder()
.spokeGwName("string")
.transitGwName("string")
.enableInsaneMode(false)
.enableJumboFrame(false)
.enableOverPrivateNetwork(false)
.insaneModeTunnelNumber(0)
.spokePrependAsPaths("string")
.transitPrependAsPaths("string")
.build());
aviatrix_edge_spoke_transit_attachment_resource = aviatrix.AviatrixEdgeSpokeTransitAttachment("aviatrixEdgeSpokeTransitAttachmentResource",
spoke_gw_name="string",
transit_gw_name="string",
enable_insane_mode=False,
enable_jumbo_frame=False,
enable_over_private_network=False,
insane_mode_tunnel_number=0,
spoke_prepend_as_paths=["string"],
transit_prepend_as_paths=["string"])
const aviatrixEdgeSpokeTransitAttachmentResource = new aviatrix.AviatrixEdgeSpokeTransitAttachment("aviatrixEdgeSpokeTransitAttachmentResource", {
spokeGwName: "string",
transitGwName: "string",
enableInsaneMode: false,
enableJumboFrame: false,
enableOverPrivateNetwork: false,
insaneModeTunnelNumber: 0,
spokePrependAsPaths: ["string"],
transitPrependAsPaths: ["string"],
});
type: aviatrix:AviatrixEdgeSpokeTransitAttachment
properties:
enableInsaneMode: false
enableJumboFrame: false
enableOverPrivateNetwork: false
insaneModeTunnelNumber: 0
spokeGwName: string
spokePrependAsPaths:
- string
transitGwName: string
transitPrependAsPaths:
- string
AviatrixEdgeSpokeTransitAttachment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AviatrixEdgeSpokeTransitAttachment resource accepts the following input properties:
- Spoke
Gw stringName - Name of the Edge as a Spoke to attach to transit network.
- Transit
Gw stringName - Name of the transit gateway to attach the Edge as a Spoke to.
- Enable
Insane boolMode - Switch to enable insane mode. Valid values: true, false. Default: false.
- Enable
Jumbo boolFrame - Switch to enable jumbo frame. Valid values: true, false. Default: false.
- Enable
Over boolPrivate Network - Switch to enable over the private network. Valid values: true, false. Default: true.
- Insane
Mode intTunnel Number - Insane mode tunnel number. Default: 0.
- Spoke
Prepend List<string>As Paths - 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.
- Transit
Prepend List<string>As Paths - 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.
- Spoke
Gw stringName - Name of the Edge as a Spoke to attach to transit network.
- Transit
Gw stringName - Name of the transit gateway to attach the Edge as a Spoke to.
- Enable
Insane boolMode - Switch to enable insane mode. Valid values: true, false. Default: false.
- Enable
Jumbo boolFrame - Switch to enable jumbo frame. Valid values: true, false. Default: false.
- Enable
Over boolPrivate Network - Switch to enable over the private network. Valid values: true, false. Default: true.
- Insane
Mode intTunnel Number - Insane mode tunnel number. Default: 0.
- Spoke
Prepend []stringAs Paths - 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.
- Transit
Prepend []stringAs Paths - 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.
- spoke
Gw StringName - Name of the Edge as a Spoke to attach to transit network.
- transit
Gw StringName - Name of the transit gateway to attach the Edge as a Spoke to.
- enable
Insane BooleanMode - Switch to enable insane mode. Valid values: true, false. Default: false.
- enable
Jumbo BooleanFrame - Switch to enable jumbo frame. Valid values: true, false. Default: false.
- enable
Over BooleanPrivate Network - Switch to enable over the private network. Valid values: true, false. Default: true.
- insane
Mode IntegerTunnel Number - Insane mode tunnel number. Default: 0.
- spoke
Prepend List<String>As Paths - 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.
- transit
Prepend List<String>As Paths - 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.
- spoke
Gw stringName - Name of the Edge as a Spoke to attach to transit network.
- transit
Gw stringName - Name of the transit gateway to attach the Edge as a Spoke to.
- enable
Insane booleanMode - Switch to enable insane mode. Valid values: true, false. Default: false.
- enable
Jumbo booleanFrame - Switch to enable jumbo frame. Valid values: true, false. Default: false.
- enable
Over booleanPrivate Network - Switch to enable over the private network. Valid values: true, false. Default: true.
- insane
Mode numberTunnel Number - Insane mode tunnel number. Default: 0.
- spoke
Prepend string[]As Paths - 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.
- transit
Prepend string[]As Paths - 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.
- spoke_
gw_ strname - Name of the Edge as a Spoke to attach to transit network.
- transit_
gw_ strname - Name of the transit gateway to attach the Edge as a Spoke to.
- enable_
insane_ boolmode - Switch to enable insane mode. Valid values: true, false. Default: false.
- enable_
jumbo_ boolframe - Switch to enable jumbo frame. Valid values: true, false. Default: false.
- enable_
over_ boolprivate_ network - Switch to enable over the private network. Valid values: true, false. Default: true.
- insane_
mode_ inttunnel_ number - Insane mode tunnel number. Default: 0.
- spoke_
prepend_ Sequence[str]as_ paths - 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.
- transit_
prepend_ Sequence[str]as_ paths - 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.
- spoke
Gw StringName - Name of the Edge as a Spoke to attach to transit network.
- transit
Gw StringName - Name of the transit gateway to attach the Edge as a Spoke to.
- enable
Insane BooleanMode - Switch to enable insane mode. Valid values: true, false. Default: false.
- enable
Jumbo BooleanFrame - Switch to enable jumbo frame. Valid values: true, false. Default: false.
- enable
Over BooleanPrivate Network - Switch to enable over the private network. Valid values: true, false. Default: true.
- insane
Mode NumberTunnel Number - Insane mode tunnel number. Default: 0.
- spoke
Prepend List<String>As Paths - 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.
- transit
Prepend List<String>As Paths - 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the AviatrixEdgeSpokeTransitAttachment resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AviatrixEdgeSpokeTransitAttachment Resource
Get an existing AviatrixEdgeSpokeTransitAttachment 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?: AviatrixEdgeSpokeTransitAttachmentState, opts?: CustomResourceOptions): AviatrixEdgeSpokeTransitAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enable_insane_mode: Optional[bool] = None,
enable_jumbo_frame: Optional[bool] = None,
enable_over_private_network: Optional[bool] = None,
insane_mode_tunnel_number: Optional[int] = 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) -> AviatrixEdgeSpokeTransitAttachment
func GetAviatrixEdgeSpokeTransitAttachment(ctx *Context, name string, id IDInput, state *AviatrixEdgeSpokeTransitAttachmentState, opts ...ResourceOption) (*AviatrixEdgeSpokeTransitAttachment, error)
public static AviatrixEdgeSpokeTransitAttachment Get(string name, Input<string> id, AviatrixEdgeSpokeTransitAttachmentState? state, CustomResourceOptions? opts = null)
public static AviatrixEdgeSpokeTransitAttachment get(String name, Output<String> id, AviatrixEdgeSpokeTransitAttachmentState 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.
- Enable
Insane boolMode - Switch to enable insane mode. Valid values: true, false. Default: false.
- Enable
Jumbo boolFrame - Switch to enable jumbo frame. Valid values: true, false. Default: false.
- Enable
Over boolPrivate Network - Switch to enable over the private network. Valid values: true, false. Default: true.
- Insane
Mode intTunnel Number - Insane mode tunnel number. Default: 0.
- Spoke
Gw stringName - Name of the Edge as a Spoke to attach to transit network.
- Spoke
Prepend List<string>As Paths - 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.
- Transit
Gw stringName - Name of the transit gateway to attach the Edge as a Spoke to.
- Transit
Prepend List<string>As Paths - 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.
- Enable
Insane boolMode - Switch to enable insane mode. Valid values: true, false. Default: false.
- Enable
Jumbo boolFrame - Switch to enable jumbo frame. Valid values: true, false. Default: false.
- Enable
Over boolPrivate Network - Switch to enable over the private network. Valid values: true, false. Default: true.
- Insane
Mode intTunnel Number - Insane mode tunnel number. Default: 0.
- Spoke
Gw stringName - Name of the Edge as a Spoke to attach to transit network.
- Spoke
Prepend []stringAs Paths - 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.
- Transit
Gw stringName - Name of the transit gateway to attach the Edge as a Spoke to.
- Transit
Prepend []stringAs Paths - 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.
- enable
Insane BooleanMode - Switch to enable insane mode. Valid values: true, false. Default: false.
- enable
Jumbo BooleanFrame - Switch to enable jumbo frame. Valid values: true, false. Default: false.
- enable
Over BooleanPrivate Network - Switch to enable over the private network. Valid values: true, false. Default: true.
- insane
Mode IntegerTunnel Number - Insane mode tunnel number. Default: 0.
- spoke
Gw StringName - Name of the Edge as a Spoke to attach to transit network.
- spoke
Prepend List<String>As Paths - 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.
- transit
Gw StringName - Name of the transit gateway to attach the Edge as a Spoke to.
- transit
Prepend List<String>As Paths - 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.
- enable
Insane booleanMode - Switch to enable insane mode. Valid values: true, false. Default: false.
- enable
Jumbo booleanFrame - Switch to enable jumbo frame. Valid values: true, false. Default: false.
- enable
Over booleanPrivate Network - Switch to enable over the private network. Valid values: true, false. Default: true.
- insane
Mode numberTunnel Number - Insane mode tunnel number. Default: 0.
- spoke
Gw stringName - Name of the Edge as a Spoke to attach to transit network.
- spoke
Prepend string[]As Paths - 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.
- transit
Gw stringName - Name of the transit gateway to attach the Edge as a Spoke to.
- transit
Prepend string[]As Paths - 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.
- enable_
insane_ boolmode - Switch to enable insane mode. Valid values: true, false. Default: false.
- enable_
jumbo_ boolframe - Switch to enable jumbo frame. Valid values: true, false. Default: false.
- enable_
over_ boolprivate_ network - Switch to enable over the private network. Valid values: true, false. Default: true.
- insane_
mode_ inttunnel_ number - Insane mode tunnel number. Default: 0.
- spoke_
gw_ strname - Name of the Edge as a Spoke to attach to transit network.
- spoke_
prepend_ Sequence[str]as_ paths - 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.
- transit_
gw_ strname - Name of the transit gateway to attach the Edge as a Spoke to.
- transit_
prepend_ Sequence[str]as_ paths - 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.
- enable
Insane BooleanMode - Switch to enable insane mode. Valid values: true, false. Default: false.
- enable
Jumbo BooleanFrame - Switch to enable jumbo frame. Valid values: true, false. Default: false.
- enable
Over BooleanPrivate Network - Switch to enable over the private network. Valid values: true, false. Default: true.
- insane
Mode NumberTunnel Number - Insane mode tunnel number. Default: 0.
- spoke
Gw StringName - Name of the Edge as a Spoke to attach to transit network.
- spoke
Prepend List<String>As Paths - 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.
- transit
Gw StringName - Name of the transit gateway to attach the Edge as a Spoke to.
- transit
Prepend List<String>As Paths - 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.
Import
spoke_transit_attachment can be imported using the spoke_gw_name
and transit_gw_name
, e.g.
$ pulumi import aviatrix:index/aviatrixEdgeSpokeTransitAttachment:AviatrixEdgeSpokeTransitAttachment test spoke_gw_name~transit_gw_name
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- aviatrix astipkovits/pulumi-aviatrix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aviatrix
Terraform Provider.