aviatrix.AviatrixSegmentationNetworkDomainAssociation

Explore with Pulumi AI

The aviatrix_segmentation_network_domain_association resource handles creation of Transit Segmentation Network Domain and Transit Gateway Attachment Associations.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    // Create an Aviatrix Segmentation Network Domain Association
    var testSegmentationNetworkDomainAssociation = new Aviatrix.AviatrixSegmentationNetworkDomainAssociation("testSegmentationNetworkDomainAssociation", new()
    {
        AttachmentName = "attachment-name",
        NetworkDomainName = "network-domain-name",
        TransitGatewayName = "transit-gw-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.NewAviatrixSegmentationNetworkDomainAssociation(ctx, "testSegmentationNetworkDomainAssociation", &aviatrix.AviatrixSegmentationNetworkDomainAssociationArgs{
			AttachmentName:     pulumi.String("attachment-name"),
			NetworkDomainName:  pulumi.String("network-domain-name"),
			TransitGatewayName: pulumi.String("transit-gw-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.AviatrixSegmentationNetworkDomainAssociation;
import com.pulumi.aviatrix.AviatrixSegmentationNetworkDomainAssociationArgs;
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 testSegmentationNetworkDomainAssociation = new AviatrixSegmentationNetworkDomainAssociation("testSegmentationNetworkDomainAssociation", AviatrixSegmentationNetworkDomainAssociationArgs.builder()        
            .attachmentName("attachment-name")
            .networkDomainName("network-domain-name")
            .transitGatewayName("transit-gw-name")
            .build());

    }
}
import pulumi
import pulumi_aviatrix as aviatrix

# Create an Aviatrix Segmentation Network Domain Association
test_segmentation_network_domain_association = aviatrix.AviatrixSegmentationNetworkDomainAssociation("testSegmentationNetworkDomainAssociation",
    attachment_name="attachment-name",
    network_domain_name="network-domain-name",
    transit_gateway_name="transit-gw-name")
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";

// Create an Aviatrix Segmentation Network Domain Association
const testSegmentationNetworkDomainAssociation = new aviatrix.AviatrixSegmentationNetworkDomainAssociation("test_segmentation_network_domain_association", {
    attachmentName: "attachment-name",
    networkDomainName: "network-domain-name",
    transitGatewayName: "transit-gw-name",
});
resources:
  # Create an Aviatrix Segmentation Network Domain Association
  testSegmentationNetworkDomainAssociation:
    type: aviatrix:AviatrixSegmentationNetworkDomainAssociation
    properties:
      attachmentName: attachment-name
      networkDomainName: network-domain-name
      transitGatewayName: transit-gw-name

Create AviatrixSegmentationNetworkDomainAssociation Resource

new AviatrixSegmentationNetworkDomainAssociation(name: string, args: AviatrixSegmentationNetworkDomainAssociationArgs, opts?: CustomResourceOptions);
@overload
def AviatrixSegmentationNetworkDomainAssociation(resource_name: str,
                                                 opts: Optional[ResourceOptions] = None,
                                                 attachment_name: Optional[str] = None,
                                                 network_domain_name: Optional[str] = None,
                                                 transit_gateway_name: Optional[str] = None)
@overload
def AviatrixSegmentationNetworkDomainAssociation(resource_name: str,
                                                 args: AviatrixSegmentationNetworkDomainAssociationArgs,
                                                 opts: Optional[ResourceOptions] = None)
func NewAviatrixSegmentationNetworkDomainAssociation(ctx *Context, name string, args AviatrixSegmentationNetworkDomainAssociationArgs, opts ...ResourceOption) (*AviatrixSegmentationNetworkDomainAssociation, error)
public AviatrixSegmentationNetworkDomainAssociation(string name, AviatrixSegmentationNetworkDomainAssociationArgs args, CustomResourceOptions? opts = null)
public AviatrixSegmentationNetworkDomainAssociation(String name, AviatrixSegmentationNetworkDomainAssociationArgs args)
public AviatrixSegmentationNetworkDomainAssociation(String name, AviatrixSegmentationNetworkDomainAssociationArgs args, CustomResourceOptions options)
type: aviatrix:AviatrixSegmentationNetworkDomainAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AviatrixSegmentationNetworkDomainAssociationArgs
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 AviatrixSegmentationNetworkDomainAssociationArgs
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 AviatrixSegmentationNetworkDomainAssociationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AviatrixSegmentationNetworkDomainAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AviatrixSegmentationNetworkDomainAssociationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

AttachmentName string

Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.

NetworkDomainName string

Name of the Segmentation Network Domain.

TransitGatewayName string

Name of the Transit Gateway.

AttachmentName string

Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.

NetworkDomainName string

Name of the Segmentation Network Domain.

TransitGatewayName string

Name of the Transit Gateway.

attachmentName String

Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.

networkDomainName String

Name of the Segmentation Network Domain.

transitGatewayName String

Name of the Transit Gateway.

attachmentName string

Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.

networkDomainName string

Name of the Segmentation Network Domain.

transitGatewayName string

Name of the Transit Gateway.

attachment_name str

Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.

network_domain_name str

Name of the Segmentation Network Domain.

transit_gateway_name str

Name of the Transit Gateway.

attachmentName String

Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.

networkDomainName String

Name of the Segmentation Network Domain.

transitGatewayName String

Name of the Transit Gateway.

Outputs

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

Get an existing AviatrixSegmentationNetworkDomainAssociation 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?: AviatrixSegmentationNetworkDomainAssociationState, opts?: CustomResourceOptions): AviatrixSegmentationNetworkDomainAssociation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        attachment_name: Optional[str] = None,
        network_domain_name: Optional[str] = None,
        transit_gateway_name: Optional[str] = None) -> AviatrixSegmentationNetworkDomainAssociation
func GetAviatrixSegmentationNetworkDomainAssociation(ctx *Context, name string, id IDInput, state *AviatrixSegmentationNetworkDomainAssociationState, opts ...ResourceOption) (*AviatrixSegmentationNetworkDomainAssociation, error)
public static AviatrixSegmentationNetworkDomainAssociation Get(string name, Input<string> id, AviatrixSegmentationNetworkDomainAssociationState? state, CustomResourceOptions? opts = null)
public static AviatrixSegmentationNetworkDomainAssociation get(String name, Output<String> id, AviatrixSegmentationNetworkDomainAssociationState 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:
AttachmentName string

Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.

NetworkDomainName string

Name of the Segmentation Network Domain.

TransitGatewayName string

Name of the Transit Gateway.

AttachmentName string

Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.

NetworkDomainName string

Name of the Segmentation Network Domain.

TransitGatewayName string

Name of the Transit Gateway.

attachmentName String

Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.

networkDomainName String

Name of the Segmentation Network Domain.

transitGatewayName String

Name of the Transit Gateway.

attachmentName string

Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.

networkDomainName string

Name of the Segmentation Network Domain.

transitGatewayName string

Name of the Transit Gateway.

attachment_name str

Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.

network_domain_name str

Name of the Segmentation Network Domain.

transit_gateway_name str

Name of the Transit Gateway.

attachmentName String

Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.

networkDomainName String

Name of the Segmentation Network Domain.

transitGatewayName String

Name of the Transit Gateway.

Import

aviatrix_segmentation_network_domain_association can be imported using transit_gateway_name, network_domain_name and attachment_name separated by a ~ e.g.

 $ pulumi import aviatrix:index/aviatrixSegmentationNetworkDomainAssociation:AviatrixSegmentationNetworkDomainAssociation test transit_gateway_name~network_domain_name~attachment_name

Package Details

Repository
aviatrix astipkovits/pulumi-aviatrix
License
Apache-2.0
Notes

This Pulumi package is based on the aviatrix Terraform Provider.