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

aviatrix.AviatrixAwsTgwSecurityDomainConn

Explore with Pulumi AI

!> WARNING: Resource ‘aviatrix_aws_tgw_security_domain_connection’ will be deprecated in future releases. Please use resource ‘aviatrix_aws_tgw_peering_domain_conn’ instead.

The aviatrix_aws_tgw_security_domain_connection resource allows the creation and management of the connections between security domains in an AWS TGW.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    // Create an Aviatrix Security Domain Connection
    var test = new Aviatrix.AviatrixAwsTgwSecurityDomainConn("test", new()
    {
        DomainName1 = "domain1",
        DomainName2 = "domain2",
        TgwName = "tgw",
    });

});
Copy
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.NewAviatrixAwsTgwSecurityDomainConn(ctx, "test", &aviatrix.AviatrixAwsTgwSecurityDomainConnArgs{
			DomainName1: pulumi.String("domain1"),
			DomainName2: pulumi.String("domain2"),
			TgwName:     pulumi.String("tgw"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aviatrix.AviatrixAwsTgwSecurityDomainConn;
import com.pulumi.aviatrix.AviatrixAwsTgwSecurityDomainConnArgs;
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 AviatrixAwsTgwSecurityDomainConn("test", AviatrixAwsTgwSecurityDomainConnArgs.builder()        
            .domainName1("domain1")
            .domainName2("domain2")
            .tgwName("tgw")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";

// Create an Aviatrix Security Domain Connection
const test = new aviatrix.AviatrixAwsTgwSecurityDomainConn("test", {
    domainName1: "domain1",
    domainName2: "domain2",
    tgwName: "tgw",
});
Copy
import pulumi
import pulumi_aviatrix as aviatrix

# Create an Aviatrix Security Domain Connection
test = aviatrix.AviatrixAwsTgwSecurityDomainConn("test",
    domain_name1="domain1",
    domain_name2="domain2",
    tgw_name="tgw")
Copy
resources:
  # Create an Aviatrix Security Domain Connection
  test:
    type: aviatrix:AviatrixAwsTgwSecurityDomainConn
    properties:
      domainName1: domain1
      domainName2: domain2
      tgwName: tgw
Copy

Create AviatrixAwsTgwSecurityDomainConn Resource

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

Constructor syntax

new AviatrixAwsTgwSecurityDomainConn(name: string, args: AviatrixAwsTgwSecurityDomainConnArgs, opts?: CustomResourceOptions);
@overload
def AviatrixAwsTgwSecurityDomainConn(resource_name: str,
                                     args: AviatrixAwsTgwSecurityDomainConnArgs,
                                     opts: Optional[ResourceOptions] = None)

@overload
def AviatrixAwsTgwSecurityDomainConn(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     domain_name1: Optional[str] = None,
                                     domain_name2: Optional[str] = None,
                                     tgw_name: Optional[str] = None)
func NewAviatrixAwsTgwSecurityDomainConn(ctx *Context, name string, args AviatrixAwsTgwSecurityDomainConnArgs, opts ...ResourceOption) (*AviatrixAwsTgwSecurityDomainConn, error)
public AviatrixAwsTgwSecurityDomainConn(string name, AviatrixAwsTgwSecurityDomainConnArgs args, CustomResourceOptions? opts = null)
public AviatrixAwsTgwSecurityDomainConn(String name, AviatrixAwsTgwSecurityDomainConnArgs args)
public AviatrixAwsTgwSecurityDomainConn(String name, AviatrixAwsTgwSecurityDomainConnArgs args, CustomResourceOptions options)
type: aviatrix:AviatrixAwsTgwSecurityDomainConn
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AviatrixAwsTgwSecurityDomainConnArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AviatrixAwsTgwSecurityDomainConnArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AviatrixAwsTgwSecurityDomainConnArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AviatrixAwsTgwSecurityDomainConnArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AviatrixAwsTgwSecurityDomainConnArgs
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 aviatrixAwsTgwSecurityDomainConnResource = new Aviatrix.AviatrixAwsTgwSecurityDomainConn("aviatrixAwsTgwSecurityDomainConnResource", new()
{
    DomainName1 = "string",
    DomainName2 = "string",
    TgwName = "string",
});
Copy
example, err := aviatrix.NewAviatrixAwsTgwSecurityDomainConn(ctx, "aviatrixAwsTgwSecurityDomainConnResource", &aviatrix.AviatrixAwsTgwSecurityDomainConnArgs{
	DomainName1: pulumi.String("string"),
	DomainName2: pulumi.String("string"),
	TgwName:     pulumi.String("string"),
})
Copy
var aviatrixAwsTgwSecurityDomainConnResource = new AviatrixAwsTgwSecurityDomainConn("aviatrixAwsTgwSecurityDomainConnResource", AviatrixAwsTgwSecurityDomainConnArgs.builder()
    .domainName1("string")
    .domainName2("string")
    .tgwName("string")
    .build());
Copy
aviatrix_aws_tgw_security_domain_conn_resource = aviatrix.AviatrixAwsTgwSecurityDomainConn("aviatrixAwsTgwSecurityDomainConnResource",
    domain_name1="string",
    domain_name2="string",
    tgw_name="string")
Copy
const aviatrixAwsTgwSecurityDomainConnResource = new aviatrix.AviatrixAwsTgwSecurityDomainConn("aviatrixAwsTgwSecurityDomainConnResource", {
    domainName1: "string",
    domainName2: "string",
    tgwName: "string",
});
Copy
type: aviatrix:AviatrixAwsTgwSecurityDomainConn
properties:
    domainName1: string
    domainName2: string
    tgwName: string
Copy

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

DomainName1
This property is required.
Changes to this property will trigger replacement.
string
The name of a security domain to make a connection.
DomainName2
This property is required.
Changes to this property will trigger replacement.
string
The name of another security domain to make a connection.
TgwName
This property is required.
Changes to this property will trigger replacement.
string
The AWS TGW name.
DomainName1
This property is required.
Changes to this property will trigger replacement.
string
The name of a security domain to make a connection.
DomainName2
This property is required.
Changes to this property will trigger replacement.
string
The name of another security domain to make a connection.
TgwName
This property is required.
Changes to this property will trigger replacement.
string
The AWS TGW name.
domainName1
This property is required.
Changes to this property will trigger replacement.
String
The name of a security domain to make a connection.
domainName2
This property is required.
Changes to this property will trigger replacement.
String
The name of another security domain to make a connection.
tgwName
This property is required.
Changes to this property will trigger replacement.
String
The AWS TGW name.
domainName1
This property is required.
Changes to this property will trigger replacement.
string
The name of a security domain to make a connection.
domainName2
This property is required.
Changes to this property will trigger replacement.
string
The name of another security domain to make a connection.
tgwName
This property is required.
Changes to this property will trigger replacement.
string
The AWS TGW name.
domain_name1
This property is required.
Changes to this property will trigger replacement.
str
The name of a security domain to make a connection.
domain_name2
This property is required.
Changes to this property will trigger replacement.
str
The name of another security domain to make a connection.
tgw_name
This property is required.
Changes to this property will trigger replacement.
str
The AWS TGW name.
domainName1
This property is required.
Changes to this property will trigger replacement.
String
The name of a security domain to make a connection.
domainName2
This property is required.
Changes to this property will trigger replacement.
String
The name of another security domain to make a connection.
tgwName
This property is required.
Changes to this property will trigger replacement.
String
The AWS TGW name.

Outputs

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

Get an existing AviatrixAwsTgwSecurityDomainConn 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?: AviatrixAwsTgwSecurityDomainConnState, opts?: CustomResourceOptions): AviatrixAwsTgwSecurityDomainConn
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        domain_name1: Optional[str] = None,
        domain_name2: Optional[str] = None,
        tgw_name: Optional[str] = None) -> AviatrixAwsTgwSecurityDomainConn
func GetAviatrixAwsTgwSecurityDomainConn(ctx *Context, name string, id IDInput, state *AviatrixAwsTgwSecurityDomainConnState, opts ...ResourceOption) (*AviatrixAwsTgwSecurityDomainConn, error)
public static AviatrixAwsTgwSecurityDomainConn Get(string name, Input<string> id, AviatrixAwsTgwSecurityDomainConnState? state, CustomResourceOptions? opts = null)
public static AviatrixAwsTgwSecurityDomainConn get(String name, Output<String> id, AviatrixAwsTgwSecurityDomainConnState state, CustomResourceOptions options)
resources:  _:    type: aviatrix:AviatrixAwsTgwSecurityDomainConn    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. string
The name of a security domain to make a connection.
DomainName2 Changes to this property will trigger replacement. string
The name of another security domain to make a connection.
TgwName Changes to this property will trigger replacement. string
The AWS TGW name.
DomainName1 Changes to this property will trigger replacement. string
The name of a security domain to make a connection.
DomainName2 Changes to this property will trigger replacement. string
The name of another security domain to make a connection.
TgwName Changes to this property will trigger replacement. string
The AWS TGW name.
domainName1 Changes to this property will trigger replacement. String
The name of a security domain to make a connection.
domainName2 Changes to this property will trigger replacement. String
The name of another security domain to make a connection.
tgwName Changes to this property will trigger replacement. String
The AWS TGW name.
domainName1 Changes to this property will trigger replacement. string
The name of a security domain to make a connection.
domainName2 Changes to this property will trigger replacement. string
The name of another security domain to make a connection.
tgwName Changes to this property will trigger replacement. string
The AWS TGW name.
domain_name1 Changes to this property will trigger replacement. str
The name of a security domain to make a connection.
domain_name2 Changes to this property will trigger replacement. str
The name of another security domain to make a connection.
tgw_name Changes to this property will trigger replacement. str
The AWS TGW name.
domainName1 Changes to this property will trigger replacement. String
The name of a security domain to make a connection.
domainName2 Changes to this property will trigger replacement. String
The name of another security domain to make a connection.
tgwName Changes to this property will trigger replacement. String
The AWS TGW name.

Import

aws_tgw_security_domain_connection can be imported using the tgw_name, domain_name1 and domain_name2, e.g.

 $ pulumi import aviatrix:index/aviatrixAwsTgwSecurityDomainConn:AviatrixAwsTgwSecurityDomainConn test tgw_name~domain_name1~domain_name2
Copy

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.