aviatrix.AviatrixAwsTgwConnect
Explore with Pulumi AI
The aviatrix_aws_tgw_connect resource allows the creation and management of AWS TGW Connect connections. To create
and manage TGW Connect peers, please use aviatrix.AviatrixAwsTgwConnectPeer
resources. This resource is available as of
provider version R2.18.1+.
NOTE: Before creating an AWS TGW Connect, the AWS TGW must have an attached VPC via the
aviatrix.AviatrixAwsTgwVpcAttachment
resource. Also, the AWS TGW must have configured CIDRs via theaviatrix.AviatrixAwsTgw
cidrs
attribute.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;
return await Deployment.RunAsync(() =>
{
// Create an Aviatrix AWS TGW Connect
var testAwsTgwConnect = new Aviatrix.AviatrixAwsTgwConnect("testAwsTgwConnect", new()
{
TgwName = aviatrix_aws_tgw.Test_aws_tgw.Tgw_name,
ConnectionName = "aws-tgw-connect",
TransportVpcId = aviatrix_aws_tgw_vpc_attachment.Test_aws_tgw_vpc_attachment.Vpc_id,
NetworkDomainName = aviatrix_aws_tgw_vpc_attachment.Test_aws_tgw_vpc_attachment.Network_domain_name,
});
});
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.NewAviatrixAwsTgwConnect(ctx, "testAwsTgwConnect", &aviatrix.AviatrixAwsTgwConnectArgs{
TgwName: pulumi.Any(aviatrix_aws_tgw.Test_aws_tgw.Tgw_name),
ConnectionName: pulumi.String("aws-tgw-connect"),
TransportVpcId: pulumi.Any(aviatrix_aws_tgw_vpc_attachment.Test_aws_tgw_vpc_attachment.Vpc_id),
NetworkDomainName: pulumi.Any(aviatrix_aws_tgw_vpc_attachment.Test_aws_tgw_vpc_attachment.Network_domain_name),
})
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.AviatrixAwsTgwConnect;
import com.pulumi.aviatrix.AviatrixAwsTgwConnectArgs;
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 testAwsTgwConnect = new AviatrixAwsTgwConnect("testAwsTgwConnect", AviatrixAwsTgwConnectArgs.builder()
.tgwName(aviatrix_aws_tgw.test_aws_tgw().tgw_name())
.connectionName("aws-tgw-connect")
.transportVpcId(aviatrix_aws_tgw_vpc_attachment.test_aws_tgw_vpc_attachment().vpc_id())
.networkDomainName(aviatrix_aws_tgw_vpc_attachment.test_aws_tgw_vpc_attachment().network_domain_name())
.build());
}
}
import pulumi
import pulumi_aviatrix as aviatrix
# Create an Aviatrix AWS TGW Connect
test_aws_tgw_connect = aviatrix.AviatrixAwsTgwConnect("testAwsTgwConnect",
tgw_name=aviatrix_aws_tgw["test_aws_tgw"]["tgw_name"],
connection_name="aws-tgw-connect",
transport_vpc_id=aviatrix_aws_tgw_vpc_attachment["test_aws_tgw_vpc_attachment"]["vpc_id"],
network_domain_name=aviatrix_aws_tgw_vpc_attachment["test_aws_tgw_vpc_attachment"]["network_domain_name"])
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@astipkovits/aviatrix";
// Create an Aviatrix AWS TGW Connect
const testAwsTgwConnect = new aviatrix.AviatrixAwsTgwConnect("testAwsTgwConnect", {
tgwName: aviatrix_aws_tgw.test_aws_tgw.tgw_name,
connectionName: "aws-tgw-connect",
transportVpcId: aviatrix_aws_tgw_vpc_attachment.test_aws_tgw_vpc_attachment.vpc_id,
networkDomainName: aviatrix_aws_tgw_vpc_attachment.test_aws_tgw_vpc_attachment.network_domain_name,
});
resources:
# Create an Aviatrix AWS TGW Connect
testAwsTgwConnect:
type: aviatrix:AviatrixAwsTgwConnect
properties:
tgwName: ${aviatrix_aws_tgw.test_aws_tgw.tgw_name}
connectionName: aws-tgw-connect
transportVpcId: ${aviatrix_aws_tgw_vpc_attachment.test_aws_tgw_vpc_attachment.vpc_id}
networkDomainName: ${aviatrix_aws_tgw_vpc_attachment.test_aws_tgw_vpc_attachment.network_domain_name}
Create AviatrixAwsTgwConnect Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AviatrixAwsTgwConnect(name: string, args: AviatrixAwsTgwConnectArgs, opts?: CustomResourceOptions);
@overload
def AviatrixAwsTgwConnect(resource_name: str,
args: AviatrixAwsTgwConnectArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AviatrixAwsTgwConnect(resource_name: str,
opts: Optional[ResourceOptions] = None,
connection_name: Optional[str] = None,
tgw_name: Optional[str] = None,
transport_vpc_id: Optional[str] = None,
network_domain_name: Optional[str] = None,
security_domain_name: Optional[str] = None)
func NewAviatrixAwsTgwConnect(ctx *Context, name string, args AviatrixAwsTgwConnectArgs, opts ...ResourceOption) (*AviatrixAwsTgwConnect, error)
public AviatrixAwsTgwConnect(string name, AviatrixAwsTgwConnectArgs args, CustomResourceOptions? opts = null)
public AviatrixAwsTgwConnect(String name, AviatrixAwsTgwConnectArgs args)
public AviatrixAwsTgwConnect(String name, AviatrixAwsTgwConnectArgs args, CustomResourceOptions options)
type: aviatrix:AviatrixAwsTgwConnect
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 AviatrixAwsTgwConnectArgs
- 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 AviatrixAwsTgwConnectArgs
- 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 AviatrixAwsTgwConnectArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AviatrixAwsTgwConnectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AviatrixAwsTgwConnectArgs
- 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 aviatrixAwsTgwConnectResource = new Aviatrix.AviatrixAwsTgwConnect("aviatrixAwsTgwConnectResource", new()
{
ConnectionName = "string",
TgwName = "string",
TransportVpcId = "string",
NetworkDomainName = "string",
});
example, err := aviatrix.NewAviatrixAwsTgwConnect(ctx, "aviatrixAwsTgwConnectResource", &aviatrix.AviatrixAwsTgwConnectArgs{
ConnectionName: pulumi.String("string"),
TgwName: pulumi.String("string"),
TransportVpcId: pulumi.String("string"),
NetworkDomainName: pulumi.String("string"),
})
var aviatrixAwsTgwConnectResource = new AviatrixAwsTgwConnect("aviatrixAwsTgwConnectResource", AviatrixAwsTgwConnectArgs.builder()
.connectionName("string")
.tgwName("string")
.transportVpcId("string")
.networkDomainName("string")
.build());
aviatrix_aws_tgw_connect_resource = aviatrix.AviatrixAwsTgwConnect("aviatrixAwsTgwConnectResource",
connection_name="string",
tgw_name="string",
transport_vpc_id="string",
network_domain_name="string")
const aviatrixAwsTgwConnectResource = new aviatrix.AviatrixAwsTgwConnect("aviatrixAwsTgwConnectResource", {
connectionName: "string",
tgwName: "string",
transportVpcId: "string",
networkDomainName: "string",
});
type: aviatrix:AviatrixAwsTgwConnect
properties:
connectionName: string
networkDomainName: string
tgwName: string
transportVpcId: string
AviatrixAwsTgwConnect 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 AviatrixAwsTgwConnect resource accepts the following input properties:
- Connection
Name string - Connection name.
- Tgw
Name string - AWS TGW name.
- Transport
Vpc stringId - Transport Attachment VPC ID.
- Network
Domain stringName - Network Domain name.
- Security
Domain stringName - Security Domain name.
- Connection
Name string - Connection name.
- Tgw
Name string - AWS TGW name.
- Transport
Vpc stringId - Transport Attachment VPC ID.
- Network
Domain stringName - Network Domain name.
- Security
Domain stringName - Security Domain name.
- connection
Name String - Connection name.
- tgw
Name String - AWS TGW name.
- transport
Vpc StringId - Transport Attachment VPC ID.
- network
Domain StringName - Network Domain name.
- security
Domain StringName - Security Domain name.
- connection
Name string - Connection name.
- tgw
Name string - AWS TGW name.
- transport
Vpc stringId - Transport Attachment VPC ID.
- network
Domain stringName - Network Domain name.
- security
Domain stringName - Security Domain name.
- connection_
name str - Connection name.
- tgw_
name str - AWS TGW name.
- transport_
vpc_ strid - Transport Attachment VPC ID.
- network_
domain_ strname - Network Domain name.
- security_
domain_ strname - Security Domain name.
- connection
Name String - Connection name.
- tgw
Name String - AWS TGW name.
- transport
Vpc StringId - Transport Attachment VPC ID.
- network
Domain StringName - Network Domain name.
- security
Domain StringName - Security Domain name.
Outputs
All input properties are implicitly available as output properties. Additionally, the AviatrixAwsTgwConnect resource produces the following output properties:
- Connect
Attachment stringId - Connect Attachment ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Transport
Attachment stringId - Transport Attachment ID.
- Connect
Attachment stringId - Connect Attachment ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Transport
Attachment stringId - Transport Attachment ID.
- connect
Attachment StringId - Connect Attachment ID.
- id String
- The provider-assigned unique ID for this managed resource.
- transport
Attachment StringId - Transport Attachment ID.
- connect
Attachment stringId - Connect Attachment ID.
- id string
- The provider-assigned unique ID for this managed resource.
- transport
Attachment stringId - Transport Attachment ID.
- connect_
attachment_ strid - Connect Attachment ID.
- id str
- The provider-assigned unique ID for this managed resource.
- transport_
attachment_ strid - Transport Attachment ID.
- connect
Attachment StringId - Connect Attachment ID.
- id String
- The provider-assigned unique ID for this managed resource.
- transport
Attachment StringId - Transport Attachment ID.
Look up Existing AviatrixAwsTgwConnect Resource
Get an existing AviatrixAwsTgwConnect 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?: AviatrixAwsTgwConnectState, opts?: CustomResourceOptions): AviatrixAwsTgwConnect
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
connect_attachment_id: Optional[str] = None,
connection_name: Optional[str] = None,
network_domain_name: Optional[str] = None,
security_domain_name: Optional[str] = None,
tgw_name: Optional[str] = None,
transport_attachment_id: Optional[str] = None,
transport_vpc_id: Optional[str] = None) -> AviatrixAwsTgwConnect
func GetAviatrixAwsTgwConnect(ctx *Context, name string, id IDInput, state *AviatrixAwsTgwConnectState, opts ...ResourceOption) (*AviatrixAwsTgwConnect, error)
public static AviatrixAwsTgwConnect Get(string name, Input<string> id, AviatrixAwsTgwConnectState? state, CustomResourceOptions? opts = null)
public static AviatrixAwsTgwConnect get(String name, Output<String> id, AviatrixAwsTgwConnectState 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.
- Connect
Attachment stringId - Connect Attachment ID.
- Connection
Name string - Connection name.
- Network
Domain stringName - Network Domain name.
- Security
Domain stringName - Security Domain name.
- Tgw
Name string - AWS TGW name.
- Transport
Attachment stringId - Transport Attachment ID.
- Transport
Vpc stringId - Transport Attachment VPC ID.
- Connect
Attachment stringId - Connect Attachment ID.
- Connection
Name string - Connection name.
- Network
Domain stringName - Network Domain name.
- Security
Domain stringName - Security Domain name.
- Tgw
Name string - AWS TGW name.
- Transport
Attachment stringId - Transport Attachment ID.
- Transport
Vpc stringId - Transport Attachment VPC ID.
- connect
Attachment StringId - Connect Attachment ID.
- connection
Name String - Connection name.
- network
Domain StringName - Network Domain name.
- security
Domain StringName - Security Domain name.
- tgw
Name String - AWS TGW name.
- transport
Attachment StringId - Transport Attachment ID.
- transport
Vpc StringId - Transport Attachment VPC ID.
- connect
Attachment stringId - Connect Attachment ID.
- connection
Name string - Connection name.
- network
Domain stringName - Network Domain name.
- security
Domain stringName - Security Domain name.
- tgw
Name string - AWS TGW name.
- transport
Attachment stringId - Transport Attachment ID.
- transport
Vpc stringId - Transport Attachment VPC ID.
- connect_
attachment_ strid - Connect Attachment ID.
- connection_
name str - Connection name.
- network_
domain_ strname - Network Domain name.
- security_
domain_ strname - Security Domain name.
- tgw_
name str - AWS TGW name.
- transport_
attachment_ strid - Transport Attachment ID.
- transport_
vpc_ strid - Transport Attachment VPC ID.
- connect
Attachment StringId - Connect Attachment ID.
- connection
Name String - Connection name.
- network
Domain StringName - Network Domain name.
- security
Domain StringName - Security Domain name.
- tgw
Name String - AWS TGW name.
- transport
Attachment StringId - Transport Attachment ID.
- transport
Vpc StringId - Transport Attachment VPC ID.
Import
aws_tgw_connect can be imported using the tgw_name
and connection_name
, e.g.
$ pulumi import aviatrix:index/aviatrixAwsTgwConnect:AviatrixAwsTgwConnect test tgw_name~~connection_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.