1. Packages
  2. Aviatrix
  3. API Docs
  4. AviatrixAwsTgwPeeringDomainConn
Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix

aviatrix.AviatrixAwsTgwPeeringDomainConn

Explore with Pulumi AI

aviatrix logo
Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix

    The aviatrix_aws_tgw_peering_domain_conn resource allows the creation and management of Aviatrix domain connections between peered AWS TGWs.

    Example Usage

    using System.Collections.Generic;
    using Pulumi;
    using Aviatrix = Pulumi.Aviatrix;
    
    return await Deployment.RunAsync(() => 
    {
        // Create an Aviatrix Domian Connection between Peered AWS Tgws
        var test = new Aviatrix.AviatrixAwsTgwPeeringDomainConn("test", new()
        {
            DomainName1 = "Default_Domain",
            DomainName2 = "Default_Domain",
            TgwName1 = "tgw1",
            TgwName2 = "tgw2",
        });
    
    });
    
    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.NewAviatrixAwsTgwPeeringDomainConn(ctx, "test", &aviatrix.AviatrixAwsTgwPeeringDomainConnArgs{
    			DomainName1: pulumi.String("Default_Domain"),
    			DomainName2: pulumi.String("Default_Domain"),
    			TgwName1:    pulumi.String("tgw1"),
    			TgwName2:    pulumi.String("tgw2"),
    		})
    		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.AviatrixAwsTgwPeeringDomainConn;
    import com.pulumi.aviatrix.AviatrixAwsTgwPeeringDomainConnArgs;
    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 test = new AviatrixAwsTgwPeeringDomainConn("test", AviatrixAwsTgwPeeringDomainConnArgs.builder()        
                .domainName1("Default_Domain")
                .domainName2("Default_Domain")
                .tgwName1("tgw1")
                .tgwName2("tgw2")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aviatrix as aviatrix
    
    # Create an Aviatrix Domian Connection between Peered AWS Tgws
    test = aviatrix.AviatrixAwsTgwPeeringDomainConn("test",
        domain_name1="Default_Domain",
        domain_name2="Default_Domain",
        tgw_name1="tgw1",
        tgw_name2="tgw2")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aviatrix from "@pulumi/aviatrix";
    
    // Create an Aviatrix Domian Connection between Peered AWS Tgws
    const test = new aviatrix.AviatrixAwsTgwPeeringDomainConn("test", {
        domainName1: "Default_Domain",
        domainName2: "Default_Domain",
        tgwName1: "tgw1",
        tgwName2: "tgw2",
    });
    
    resources:
      # Create an Aviatrix Domian Connection between Peered AWS Tgws
      test:
        type: aviatrix:AviatrixAwsTgwPeeringDomainConn
        properties:
          domainName1: Default_Domain
          domainName2: Default_Domain
          tgwName1: tgw1
          tgwName2: tgw2
    

    Create AviatrixAwsTgwPeeringDomainConn Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AviatrixAwsTgwPeeringDomainConn(name: string, args: AviatrixAwsTgwPeeringDomainConnArgs, opts?: CustomResourceOptions);
    @overload
    def AviatrixAwsTgwPeeringDomainConn(resource_name: str,
                                        args: AviatrixAwsTgwPeeringDomainConnArgs,
                                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def AviatrixAwsTgwPeeringDomainConn(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        domain_name1: Optional[str] = None,
                                        domain_name2: Optional[str] = None,
                                        tgw_name1: Optional[str] = None,
                                        tgw_name2: Optional[str] = None)
    func NewAviatrixAwsTgwPeeringDomainConn(ctx *Context, name string, args AviatrixAwsTgwPeeringDomainConnArgs, opts ...ResourceOption) (*AviatrixAwsTgwPeeringDomainConn, error)
    public AviatrixAwsTgwPeeringDomainConn(string name, AviatrixAwsTgwPeeringDomainConnArgs args, CustomResourceOptions? opts = null)
    public AviatrixAwsTgwPeeringDomainConn(String name, AviatrixAwsTgwPeeringDomainConnArgs args)
    public AviatrixAwsTgwPeeringDomainConn(String name, AviatrixAwsTgwPeeringDomainConnArgs args, CustomResourceOptions options)
    
    type: aviatrix:AviatrixAwsTgwPeeringDomainConn
    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 AviatrixAwsTgwPeeringDomainConnArgs
    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 AviatrixAwsTgwPeeringDomainConnArgs
    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 AviatrixAwsTgwPeeringDomainConnArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AviatrixAwsTgwPeeringDomainConnArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AviatrixAwsTgwPeeringDomainConnArgs
    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 aviatrixAwsTgwPeeringDomainConnResource = new Aviatrix.AviatrixAwsTgwPeeringDomainConn("aviatrixAwsTgwPeeringDomainConnResource", new()
    {
        DomainName1 = "string",
        DomainName2 = "string",
        TgwName1 = "string",
        TgwName2 = "string",
    });
    
    example, err := aviatrix.NewAviatrixAwsTgwPeeringDomainConn(ctx, "aviatrixAwsTgwPeeringDomainConnResource", &aviatrix.AviatrixAwsTgwPeeringDomainConnArgs{
    	DomainName1: pulumi.String("string"),
    	DomainName2: pulumi.String("string"),
    	TgwName1:    pulumi.String("string"),
    	TgwName2:    pulumi.String("string"),
    })
    
    var aviatrixAwsTgwPeeringDomainConnResource = new AviatrixAwsTgwPeeringDomainConn("aviatrixAwsTgwPeeringDomainConnResource", AviatrixAwsTgwPeeringDomainConnArgs.builder()
        .domainName1("string")
        .domainName2("string")
        .tgwName1("string")
        .tgwName2("string")
        .build());
    
    aviatrix_aws_tgw_peering_domain_conn_resource = aviatrix.AviatrixAwsTgwPeeringDomainConn("aviatrixAwsTgwPeeringDomainConnResource",
        domain_name1="string",
        domain_name2="string",
        tgw_name1="string",
        tgw_name2="string")
    
    const aviatrixAwsTgwPeeringDomainConnResource = new aviatrix.AviatrixAwsTgwPeeringDomainConn("aviatrixAwsTgwPeeringDomainConnResource", {
        domainName1: "string",
        domainName2: "string",
        tgwName1: "string",
        tgwName2: "string",
    });
    
    type: aviatrix:AviatrixAwsTgwPeeringDomainConn
    properties:
        domainName1: string
        domainName2: string
        tgwName1: string
        tgwName2: string
    

    AviatrixAwsTgwPeeringDomainConn 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 AviatrixAwsTgwPeeringDomainConn resource accepts the following input properties:

    DomainName1 string
    The name of the source domain to make a connection.
    DomainName2 string
    The name of the destination domain to make a connection.
    TgwName1 string
    The AWS TGW name of the source domain to make a connection.
    TgwName2 string
    The AWS TGW name of the destination domain to make a connection.
    DomainName1 string
    The name of the source domain to make a connection.
    DomainName2 string
    The name of the destination domain to make a connection.
    TgwName1 string
    The AWS TGW name of the source domain to make a connection.
    TgwName2 string
    The AWS TGW name of the destination domain to make a connection.
    domainName1 String
    The name of the source domain to make a connection.
    domainName2 String
    The name of the destination domain to make a connection.
    tgwName1 String
    The AWS TGW name of the source domain to make a connection.
    tgwName2 String
    The AWS TGW name of the destination domain to make a connection.
    domainName1 string
    The name of the source domain to make a connection.
    domainName2 string
    The name of the destination domain to make a connection.
    tgwName1 string
    The AWS TGW name of the source domain to make a connection.
    tgwName2 string
    The AWS TGW name of the destination domain to make a connection.
    domain_name1 str
    The name of the source domain to make a connection.
    domain_name2 str
    The name of the destination domain to make a connection.
    tgw_name1 str
    The AWS TGW name of the source domain to make a connection.
    tgw_name2 str
    The AWS TGW name of the destination domain to make a connection.
    domainName1 String
    The name of the source domain to make a connection.
    domainName2 String
    The name of the destination domain to make a connection.
    tgwName1 String
    The AWS TGW name of the source domain to make a connection.
    tgwName2 String
    The AWS TGW name of the destination domain to make a connection.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AviatrixAwsTgwPeeringDomainConn 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 AviatrixAwsTgwPeeringDomainConn Resource

    Get an existing AviatrixAwsTgwPeeringDomainConn 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?: AviatrixAwsTgwPeeringDomainConnState, opts?: CustomResourceOptions): AviatrixAwsTgwPeeringDomainConn
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            domain_name1: Optional[str] = None,
            domain_name2: Optional[str] = None,
            tgw_name1: Optional[str] = None,
            tgw_name2: Optional[str] = None) -> AviatrixAwsTgwPeeringDomainConn
    func GetAviatrixAwsTgwPeeringDomainConn(ctx *Context, name string, id IDInput, state *AviatrixAwsTgwPeeringDomainConnState, opts ...ResourceOption) (*AviatrixAwsTgwPeeringDomainConn, error)
    public static AviatrixAwsTgwPeeringDomainConn Get(string name, Input<string> id, AviatrixAwsTgwPeeringDomainConnState? state, CustomResourceOptions? opts = null)
    public static AviatrixAwsTgwPeeringDomainConn get(String name, Output<String> id, AviatrixAwsTgwPeeringDomainConnState 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:
    DomainName1 string
    The name of the source domain to make a connection.
    DomainName2 string
    The name of the destination domain to make a connection.
    TgwName1 string
    The AWS TGW name of the source domain to make a connection.
    TgwName2 string
    The AWS TGW name of the destination domain to make a connection.
    DomainName1 string
    The name of the source domain to make a connection.
    DomainName2 string
    The name of the destination domain to make a connection.
    TgwName1 string
    The AWS TGW name of the source domain to make a connection.
    TgwName2 string
    The AWS TGW name of the destination domain to make a connection.
    domainName1 String
    The name of the source domain to make a connection.
    domainName2 String
    The name of the destination domain to make a connection.
    tgwName1 String
    The AWS TGW name of the source domain to make a connection.
    tgwName2 String
    The AWS TGW name of the destination domain to make a connection.
    domainName1 string
    The name of the source domain to make a connection.
    domainName2 string
    The name of the destination domain to make a connection.
    tgwName1 string
    The AWS TGW name of the source domain to make a connection.
    tgwName2 string
    The AWS TGW name of the destination domain to make a connection.
    domain_name1 str
    The name of the source domain to make a connection.
    domain_name2 str
    The name of the destination domain to make a connection.
    tgw_name1 str
    The AWS TGW name of the source domain to make a connection.
    tgw_name2 str
    The AWS TGW name of the destination domain to make a connection.
    domainName1 String
    The name of the source domain to make a connection.
    domainName2 String
    The name of the destination domain to make a connection.
    tgwName1 String
    The AWS TGW name of the source domain to make a connection.
    tgwName2 String
    The AWS TGW name of the destination domain to make a connection.

    Import

    aws_tgw_peering_domain_conn can be imported using the tgw_name1, domain_name1, tgw_name2 and domain_name2, e.g.

     $ pulumi import aviatrix:index/aviatrixAwsTgwPeeringDomainConn:AviatrixAwsTgwPeeringDomainConn test tgw_name1:domain_name1~tgw_name2:domain_name2
    

    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.
    aviatrix logo
    Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix