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
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 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.
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",
});
example, err := aviatrix.NewAviatrixSegmentationNetworkDomainAssociation(ctx, "aviatrixSegmentationNetworkDomainAssociationResource", &aviatrix.AviatrixSegmentationNetworkDomainAssociationArgs{
AttachmentName: pulumi.String("string"),
NetworkDomainName: pulumi.String("string"),
TransitGatewayName: pulumi.String("string"),
})
var aviatrixSegmentationNetworkDomainAssociationResource = new AviatrixSegmentationNetworkDomainAssociation("aviatrixSegmentationNetworkDomainAssociationResource", AviatrixSegmentationNetworkDomainAssociationArgs.builder()
.attachmentName("string")
.networkDomainName("string")
.transitGatewayName("string")
.build());
aviatrix_segmentation_network_domain_association_resource = aviatrix.AviatrixSegmentationNetworkDomainAssociation("aviatrixSegmentationNetworkDomainAssociationResource",
attachment_name="string",
network_domain_name="string",
transit_gateway_name="string")
const aviatrixSegmentationNetworkDomainAssociationResource = new aviatrix.AviatrixSegmentationNetworkDomainAssociation("aviatrixSegmentationNetworkDomainAssociationResource", {
attachmentName: "string",
networkDomainName: "string",
transitGatewayName: "string",
});
type: aviatrix:AviatrixSegmentationNetworkDomainAssociation
properties:
attachmentName: string
networkDomainName: string
transitGatewayName: string
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:
- Attachment
Name string - Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
- Network
Domain stringName - Name of the Segmentation Network Domain.
- Transit
Gateway stringName - Name of the Transit Gateway.
- Attachment
Name string - Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
- Network
Domain stringName - Name of the Segmentation Network Domain.
- Transit
Gateway stringName - Name of the Transit Gateway.
- attachment
Name String - Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
- network
Domain StringName - Name of the Segmentation Network Domain.
- transit
Gateway StringName - Name of the Transit Gateway.
- attachment
Name string - Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
- network
Domain stringName - Name of the Segmentation Network Domain.
- transit
Gateway stringName - 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_ strname - Name of the Segmentation Network Domain.
- transit_
gateway_ strname - Name of the Transit Gateway.
- attachment
Name String - Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
- network
Domain StringName - Name of the Segmentation Network Domain.
- transit
Gateway StringName - 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.
- Attachment
Name string - Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
- Network
Domain stringName - Name of the Segmentation Network Domain.
- Transit
Gateway stringName - Name of the Transit Gateway.
- Attachment
Name string - Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
- Network
Domain stringName - Name of the Segmentation Network Domain.
- Transit
Gateway stringName - Name of the Transit Gateway.
- attachment
Name String - Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
- network
Domain StringName - Name of the Segmentation Network Domain.
- transit
Gateway StringName - Name of the Transit Gateway.
- attachment
Name string - Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
- network
Domain stringName - Name of the Segmentation Network Domain.
- transit
Gateway stringName - 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_ strname - Name of the Segmentation Network Domain.
- transit_
gateway_ strname - Name of the Transit Gateway.
- attachment
Name String - Name of the transit gateway attachment, Spoke or Edge, to associate with the network domain.
- network
Domain StringName - Name of the Segmentation Network Domain.
- transit
Gateway StringName - 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
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.