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

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",
    });

});
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.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
	})
}
Copy
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());

    }
}
Copy
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",
});
Copy
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")
Copy
resources:
  # Create an Aviatrix Segmentation Network Domain Association
  testSegmentationNetworkDomainAssociation:
    type: aviatrix:AviatrixSegmentationNetworkDomainAssociation
    properties:
      attachmentName: attachment-name
      networkDomainName: network-domain-name
      transitGatewayName: transit-gw-name
Copy

Create AviatrixSegmentationNetworkDomainAssociation Resource

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

Constructor syntax

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

@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)
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.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AviatrixSegmentationNetworkDomainAssociationArgs
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. 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 This property is required. string
The unique name of the resource.
args This property is required. AviatrixSegmentationNetworkDomainAssociationArgs
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. AviatrixSegmentationNetworkDomainAssociationArgs
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. AviatrixSegmentationNetworkDomainAssociationArgs
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 aviatrixSegmentationNetworkDomainAssociationResource = new Aviatrix.AviatrixSegmentationNetworkDomainAssociation("aviatrixSegmentationNetworkDomainAssociationResource", new()
{
    AttachmentName = "string",
    NetworkDomainName = "string",
    TransitGatewayName = "string",
});
Copy
example, err := aviatrix.NewAviatrixSegmentationNetworkDomainAssociation(ctx, "aviatrixSegmentationNetworkDomainAssociationResource", &aviatrix.AviatrixSegmentationNetworkDomainAssociationArgs{
	AttachmentName:     pulumi.String("string"),
	NetworkDomainName:  pulumi.String("string"),
	TransitGatewayName: pulumi.String("string"),
})
Copy
var aviatrixSegmentationNetworkDomainAssociationResource = new AviatrixSegmentationNetworkDomainAssociation("aviatrixSegmentationNetworkDomainAssociationResource", AviatrixSegmentationNetworkDomainAssociationArgs.builder()
    .attachmentName("string")
    .networkDomainName("string")
    .transitGatewayName("string")
    .build());
Copy
aviatrix_segmentation_network_domain_association_resource = aviatrix.AviatrixSegmentationNetworkDomainAssociation("aviatrixSegmentationNetworkDomainAssociationResource",
    attachment_name="string",
    network_domain_name="string",
    transit_gateway_name="string")
Copy
const aviatrixSegmentationNetworkDomainAssociationResource = new aviatrix.AviatrixSegmentationNetworkDomainAssociation("aviatrixSegmentationNetworkDomainAssociationResource", {
    attachmentName: "string",
    networkDomainName: "string",
    transitGatewayName: "string",
});
Copy
type: aviatrix:AviatrixSegmentationNetworkDomainAssociation
properties:
    attachmentName: string
    networkDomainName: string
    transitGatewayName: string
Copy

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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AviatrixSegmentationNetworkDomainAssociation resource accepts the following input properties:

AttachmentName
This property is required.
Changes to this property will trigger replacement.
string
Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
NetworkDomainName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Segmentation Network Domain.
TransitGatewayName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Transit Gateway.
AttachmentName
This property is required.
Changes to this property will trigger replacement.
string
Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
NetworkDomainName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Segmentation Network Domain.
TransitGatewayName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Transit Gateway.
attachmentName
This property is required.
Changes to this property will trigger replacement.
String
Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
networkDomainName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Segmentation Network Domain.
transitGatewayName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Transit Gateway.
attachmentName
This property is required.
Changes to this property will trigger replacement.
string
Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
networkDomainName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Segmentation Network Domain.
transitGatewayName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Transit Gateway.
attachment_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
network_domain_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the Segmentation Network Domain.
transit_gateway_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the Transit Gateway.
attachmentName
This property is required.
Changes to this property will trigger replacement.
String
Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
networkDomainName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Segmentation Network Domain.
transitGatewayName
This property is required.
Changes to this property will trigger replacement.
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)
resources:  _:    type: aviatrix:AviatrixSegmentationNetworkDomainAssociation    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:
AttachmentName Changes to this property will trigger replacement. string
Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
NetworkDomainName Changes to this property will trigger replacement. string
Name of the Segmentation Network Domain.
TransitGatewayName Changes to this property will trigger replacement. string
Name of the Transit Gateway.
AttachmentName Changes to this property will trigger replacement. string
Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
NetworkDomainName Changes to this property will trigger replacement. string
Name of the Segmentation Network Domain.
TransitGatewayName Changes to this property will trigger replacement. string
Name of the Transit Gateway.
attachmentName Changes to this property will trigger replacement. String
Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
networkDomainName Changes to this property will trigger replacement. String
Name of the Segmentation Network Domain.
transitGatewayName Changes to this property will trigger replacement. String
Name of the Transit Gateway.
attachmentName Changes to this property will trigger replacement. string
Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
networkDomainName Changes to this property will trigger replacement. string
Name of the Segmentation Network Domain.
transitGatewayName Changes to this property will trigger replacement. string
Name of the Transit Gateway.
attachment_name Changes to this property will trigger replacement. str
Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
network_domain_name Changes to this property will trigger replacement. str
Name of the Segmentation Network Domain.
transit_gateway_name Changes to this property will trigger replacement. str
Name of the Transit Gateway.
attachmentName Changes to this property will trigger replacement. String
Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
networkDomainName Changes to this property will trigger replacement. String
Name of the Segmentation Network Domain.
transitGatewayName Changes to this property will trigger replacement. 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
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.