aviatrix.AviatrixSpokeTransitAttachment
Explore with Pulumi AI
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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AviatrixSpokeTransitAttachment(name: string, args: AviatrixSpokeTransitAttachmentArgs, opts?: CustomResourceOptions);
@overload
def AviatrixSpokeTransitAttachment(resource_name: str,
args: AviatrixSpokeTransitAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AviatrixSpokeTransitAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
spoke_gw_name: Optional[str] = None,
transit_gw_name: Optional[str] = None,
enable_max_performance: Optional[bool] = None,
route_tables: Optional[Sequence[str]] = None,
spoke_prepend_as_paths: Optional[Sequence[str]] = None,
transit_prepend_as_paths: Optional[Sequence[str]] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var aviatrixSpokeTransitAttachmentResource = new Aviatrix.AviatrixSpokeTransitAttachment("aviatrixSpokeTransitAttachmentResource", new()
{
SpokeGwName = "string",
TransitGwName = "string",
EnableMaxPerformance = false,
RouteTables = new[]
{
"string",
},
SpokePrependAsPaths = new[]
{
"string",
},
TransitPrependAsPaths = new[]
{
"string",
},
});
example, err := aviatrix.NewAviatrixSpokeTransitAttachment(ctx, "aviatrixSpokeTransitAttachmentResource", &aviatrix.AviatrixSpokeTransitAttachmentArgs{
SpokeGwName: pulumi.String("string"),
TransitGwName: pulumi.String("string"),
EnableMaxPerformance: pulumi.Bool(false),
RouteTables: pulumi.StringArray{
pulumi.String("string"),
},
SpokePrependAsPaths: pulumi.StringArray{
pulumi.String("string"),
},
TransitPrependAsPaths: pulumi.StringArray{
pulumi.String("string"),
},
})
var aviatrixSpokeTransitAttachmentResource = new AviatrixSpokeTransitAttachment("aviatrixSpokeTransitAttachmentResource", AviatrixSpokeTransitAttachmentArgs.builder()
.spokeGwName("string")
.transitGwName("string")
.enableMaxPerformance(false)
.routeTables("string")
.spokePrependAsPaths("string")
.transitPrependAsPaths("string")
.build());
aviatrix_spoke_transit_attachment_resource = aviatrix.AviatrixSpokeTransitAttachment("aviatrixSpokeTransitAttachmentResource",
spoke_gw_name="string",
transit_gw_name="string",
enable_max_performance=False,
route_tables=["string"],
spoke_prepend_as_paths=["string"],
transit_prepend_as_paths=["string"])
const aviatrixSpokeTransitAttachmentResource = new aviatrix.AviatrixSpokeTransitAttachment("aviatrixSpokeTransitAttachmentResource", {
spokeGwName: "string",
transitGwName: "string",
enableMaxPerformance: false,
routeTables: ["string"],
spokePrependAsPaths: ["string"],
transitPrependAsPaths: ["string"],
});
type: aviatrix:AviatrixSpokeTransitAttachment
properties:
enableMaxPerformance: false
routeTables:
- string
spokeGwName: string
spokePrependAsPaths:
- string
transitGwName: string
transitPrependAsPaths:
- string
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:
- Spoke
Gw stringName - Name of the spoke gateway to attach to transit network.
- Transit
Gw stringName - Name of the transit gateway to attach the spoke gateway to.
- Enable
Max boolPerformance - 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 List<string> - Learned routes will be propagated to these route tables. Example: ["rtb-212ff547","rtb-04539787"].
- Spoke
Prepend List<string>As Paths - 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 List<string>As Paths - 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 stringName - Name of the spoke gateway to attach to transit network.
- Transit
Gw stringName - Name of the transit gateway to attach the spoke gateway to.
- Enable
Max boolPerformance - 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 []string - Learned routes will be propagated to these route tables. Example: ["rtb-212ff547","rtb-04539787"].
- Spoke
Prepend []stringAs Paths - 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 []stringAs Paths - 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 StringName - Name of the spoke gateway to attach to transit network.
- transit
Gw StringName - Name of the transit gateway to attach the spoke gateway to.
- enable
Max BooleanPerformance - 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 List<String> - Learned routes will be propagated to these route tables. Example: ["rtb-212ff547","rtb-04539787"].
- spoke
Prepend List<String>As Paths - 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 List<String>As Paths - 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 stringName - Name of the spoke gateway to attach to transit network.
- transit
Gw stringName - Name of the transit gateway to attach the spoke gateway to.
- enable
Max booleanPerformance - 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 string[] - Learned routes will be propagated to these route tables. Example: ["rtb-212ff547","rtb-04539787"].
- spoke
Prepend string[]As Paths - 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 string[]As Paths - 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_ strname - Name of the spoke gateway to attach to transit network.
- transit_
gw_ strname - Name of the transit gateway to attach the spoke gateway to.
- enable_
max_ boolperformance - 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_ Sequence[str]as_ paths - 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_ Sequence[str]as_ paths - 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 StringName - Name of the spoke gateway to attach to transit network.
- transit
Gw StringName - Name of the transit gateway to attach the spoke gateway to.
- enable
Max BooleanPerformance - 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 List<String> - Learned routes will be propagated to these route tables. Example: ["rtb-212ff547","rtb-04539787"].
- spoke
Prepend List<String>As Paths - 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 List<String>As Paths - 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.
- Spoke
Bgp boolEnabled - Indicates whether the spoke gateway is BGP enabled or not.
- Id string
- The provider-assigned unique ID for this managed resource.
- Spoke
Bgp boolEnabled - Indicates whether the spoke gateway is BGP enabled or not.
- id String
- The provider-assigned unique ID for this managed resource.
- spoke
Bgp BooleanEnabled - Indicates whether the spoke gateway is BGP enabled or not.
- id string
- The provider-assigned unique ID for this managed resource.
- spoke
Bgp booleanEnabled - Indicates whether the spoke gateway is BGP enabled or not.
- id str
- The provider-assigned unique ID for this managed resource.
- spoke_
bgp_ boolenabled - Indicates whether the spoke gateway is BGP enabled or not.
- id String
- The provider-assigned unique ID for this managed resource.
- spoke
Bgp BooleanEnabled - 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.
- Enable
Max boolPerformance - 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 List<string> - Learned routes will be propagated to these route tables. Example: ["rtb-212ff547","rtb-04539787"].
- Spoke
Bgp boolEnabled - Indicates whether the spoke gateway is BGP enabled or not.
- Spoke
Gw stringName - Name of the spoke gateway to attach to transit network.
- Spoke
Prepend List<string>As Paths - 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 stringName - Name of the transit gateway to attach the spoke gateway to.
- Transit
Prepend List<string>As Paths - 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 boolPerformance - 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 []string - Learned routes will be propagated to these route tables. Example: ["rtb-212ff547","rtb-04539787"].
- Spoke
Bgp boolEnabled - Indicates whether the spoke gateway is BGP enabled or not.
- Spoke
Gw stringName - Name of the spoke gateway to attach to transit network.
- Spoke
Prepend []stringAs Paths - 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 stringName - Name of the transit gateway to attach the spoke gateway to.
- Transit
Prepend []stringAs Paths - 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 BooleanPerformance - 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 List<String> - Learned routes will be propagated to these route tables. Example: ["rtb-212ff547","rtb-04539787"].
- spoke
Bgp BooleanEnabled - Indicates whether the spoke gateway is BGP enabled or not.
- spoke
Gw StringName - Name of the spoke gateway to attach to transit network.
- spoke
Prepend List<String>As Paths - 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 StringName - Name of the transit gateway to attach the spoke gateway to.
- transit
Prepend List<String>As Paths - 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 booleanPerformance - 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 string[] - Learned routes will be propagated to these route tables. Example: ["rtb-212ff547","rtb-04539787"].
- spoke
Bgp booleanEnabled - Indicates whether the spoke gateway is BGP enabled or not.
- spoke
Gw stringName - Name of the spoke gateway to attach to transit network.
- spoke
Prepend string[]As Paths - 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 stringName - Name of the transit gateway to attach the spoke gateway to.
- transit
Prepend string[]As Paths - 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_ boolperformance - 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_ boolenabled - Indicates whether the spoke gateway is BGP enabled or not.
- spoke_
gw_ strname - Name of the spoke gateway to attach to transit network.
- spoke_
prepend_ Sequence[str]as_ paths - 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_ strname - Name of the transit gateway to attach the spoke gateway to.
- transit_
prepend_ Sequence[str]as_ paths - 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 BooleanPerformance - 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 List<String> - Learned routes will be propagated to these route tables. Example: ["rtb-212ff547","rtb-04539787"].
- spoke
Bgp BooleanEnabled - Indicates whether the spoke gateway is BGP enabled or not.
- spoke
Gw StringName - Name of the spoke gateway to attach to transit network.
- spoke
Prepend List<String>As Paths - 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 StringName - Name of the transit gateway to attach the spoke gateway to.
- transit
Prepend List<String>As Paths - 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.