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

aviatrix.AviatrixSegmentationSecurityDomainAssociation

Explore with Pulumi AI

The aviatrix_segmentation_security_domain_association resource handles creation of Transit Segmentation Security 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 Security Domain Association
    var testSegmentationSecurityDomainAssociation = new Aviatrix.AviatrixSegmentationSecurityDomainAssociation("testSegmentationSecurityDomainAssociation", new()
    {
        AttachmentName = "attachment-name",
        SecurityDomainName = "security-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.NewAviatrixSegmentationSecurityDomainAssociation(ctx, "testSegmentationSecurityDomainAssociation", &aviatrix.AviatrixSegmentationSecurityDomainAssociationArgs{
			AttachmentName:     pulumi.String("attachment-name"),
			SecurityDomainName: pulumi.String("security-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.AviatrixSegmentationSecurityDomainAssociation;
import com.pulumi.aviatrix.AviatrixSegmentationSecurityDomainAssociationArgs;
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 testSegmentationSecurityDomainAssociation = new AviatrixSegmentationSecurityDomainAssociation("testSegmentationSecurityDomainAssociation", AviatrixSegmentationSecurityDomainAssociationArgs.builder()        
            .attachmentName("attachment-name")
            .securityDomainName("security-domain-name")
            .transitGatewayName("transit-gw-name")
            .build());

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

// Create an Aviatrix Segmentation Security Domain Association
const testSegmentationSecurityDomainAssociation = new aviatrix.AviatrixSegmentationSecurityDomainAssociation("test_segmentation_security_domain_association", {
    attachmentName: "attachment-name",
    securityDomainName: "security-domain-name",
    transitGatewayName: "transit-gw-name",
});
Copy
import pulumi
import pulumi_aviatrix as aviatrix

# Create an Aviatrix Segmentation Security Domain Association
test_segmentation_security_domain_association = aviatrix.AviatrixSegmentationSecurityDomainAssociation("testSegmentationSecurityDomainAssociation",
    attachment_name="attachment-name",
    security_domain_name="security-domain-name",
    transit_gateway_name="transit-gw-name")
Copy
resources:
  # Create an Aviatrix Segmentation Security Domain Association
  testSegmentationSecurityDomainAssociation:
    type: aviatrix:AviatrixSegmentationSecurityDomainAssociation
    properties:
      attachmentName: attachment-name
      securityDomainName: security-domain-name
      transitGatewayName: transit-gw-name
Copy

Create AviatrixSegmentationSecurityDomainAssociation Resource

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

Constructor syntax

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

@overload
def AviatrixSegmentationSecurityDomainAssociation(resource_name: str,
                                                  opts: Optional[ResourceOptions] = None,
                                                  attachment_name: Optional[str] = None,
                                                  security_domain_name: Optional[str] = None,
                                                  transit_gateway_name: Optional[str] = None)
func NewAviatrixSegmentationSecurityDomainAssociation(ctx *Context, name string, args AviatrixSegmentationSecurityDomainAssociationArgs, opts ...ResourceOption) (*AviatrixSegmentationSecurityDomainAssociation, error)
public AviatrixSegmentationSecurityDomainAssociation(string name, AviatrixSegmentationSecurityDomainAssociationArgs args, CustomResourceOptions? opts = null)
public AviatrixSegmentationSecurityDomainAssociation(String name, AviatrixSegmentationSecurityDomainAssociationArgs args)
public AviatrixSegmentationSecurityDomainAssociation(String name, AviatrixSegmentationSecurityDomainAssociationArgs args, CustomResourceOptions options)
type: aviatrix:AviatrixSegmentationSecurityDomainAssociation
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. AviatrixSegmentationSecurityDomainAssociationArgs
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. AviatrixSegmentationSecurityDomainAssociationArgs
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. AviatrixSegmentationSecurityDomainAssociationArgs
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. AviatrixSegmentationSecurityDomainAssociationArgs
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. AviatrixSegmentationSecurityDomainAssociationArgs
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 aviatrixSegmentationSecurityDomainAssociationResource = new Aviatrix.AviatrixSegmentationSecurityDomainAssociation("aviatrixSegmentationSecurityDomainAssociationResource", new()
{
    AttachmentName = "string",
    SecurityDomainName = "string",
    TransitGatewayName = "string",
});
Copy
example, err := aviatrix.NewAviatrixSegmentationSecurityDomainAssociation(ctx, "aviatrixSegmentationSecurityDomainAssociationResource", &aviatrix.AviatrixSegmentationSecurityDomainAssociationArgs{
	AttachmentName:     pulumi.String("string"),
	SecurityDomainName: pulumi.String("string"),
	TransitGatewayName: pulumi.String("string"),
})
Copy
var aviatrixSegmentationSecurityDomainAssociationResource = new AviatrixSegmentationSecurityDomainAssociation("aviatrixSegmentationSecurityDomainAssociationResource", AviatrixSegmentationSecurityDomainAssociationArgs.builder()
    .attachmentName("string")
    .securityDomainName("string")
    .transitGatewayName("string")
    .build());
Copy
aviatrix_segmentation_security_domain_association_resource = aviatrix.AviatrixSegmentationSecurityDomainAssociation("aviatrixSegmentationSecurityDomainAssociationResource",
    attachment_name="string",
    security_domain_name="string",
    transit_gateway_name="string")
Copy
const aviatrixSegmentationSecurityDomainAssociationResource = new aviatrix.AviatrixSegmentationSecurityDomainAssociation("aviatrixSegmentationSecurityDomainAssociationResource", {
    attachmentName: "string",
    securityDomainName: "string",
    transitGatewayName: "string",
});
Copy
type: aviatrix:AviatrixSegmentationSecurityDomainAssociation
properties:
    attachmentName: string
    securityDomainName: string
    transitGatewayName: string
Copy

AviatrixSegmentationSecurityDomainAssociation 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 AviatrixSegmentationSecurityDomainAssociation 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 security domain.
SecurityDomainName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Segmentation Security 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 security domain.
SecurityDomainName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Segmentation Security 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 security domain.
securityDomainName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Segmentation Security 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 security domain.
securityDomainName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Segmentation Security 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 security domain.
security_domain_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the Segmentation Security 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 security domain.
securityDomainName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Segmentation Security 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 AviatrixSegmentationSecurityDomainAssociation 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 AviatrixSegmentationSecurityDomainAssociation Resource

Get an existing AviatrixSegmentationSecurityDomainAssociation 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?: AviatrixSegmentationSecurityDomainAssociationState, opts?: CustomResourceOptions): AviatrixSegmentationSecurityDomainAssociation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        attachment_name: Optional[str] = None,
        security_domain_name: Optional[str] = None,
        transit_gateway_name: Optional[str] = None) -> AviatrixSegmentationSecurityDomainAssociation
func GetAviatrixSegmentationSecurityDomainAssociation(ctx *Context, name string, id IDInput, state *AviatrixSegmentationSecurityDomainAssociationState, opts ...ResourceOption) (*AviatrixSegmentationSecurityDomainAssociation, error)
public static AviatrixSegmentationSecurityDomainAssociation Get(string name, Input<string> id, AviatrixSegmentationSecurityDomainAssociationState? state, CustomResourceOptions? opts = null)
public static AviatrixSegmentationSecurityDomainAssociation get(String name, Output<String> id, AviatrixSegmentationSecurityDomainAssociationState state, CustomResourceOptions options)
resources:  _:    type: aviatrix:AviatrixSegmentationSecurityDomainAssociation    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 security domain.
SecurityDomainName Changes to this property will trigger replacement. string
Name of the Segmentation Security 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 security domain.
SecurityDomainName Changes to this property will trigger replacement. string
Name of the Segmentation Security 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 security domain.
securityDomainName Changes to this property will trigger replacement. String
Name of the Segmentation Security 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 security domain.
securityDomainName Changes to this property will trigger replacement. string
Name of the Segmentation Security 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 security domain.
security_domain_name Changes to this property will trigger replacement. str
Name of the Segmentation Security 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 security domain.
securityDomainName Changes to this property will trigger replacement. String
Name of the Segmentation Security Domain.
transitGatewayName Changes to this property will trigger replacement. String
Name of the Transit Gateway.

Import

aviatrix_segmentation_security_domain_association can be imported using transit_gateway_name, security_domain_name and attachment_name separated by a ~ e.g.

 $ pulumi import aviatrix:index/aviatrixSegmentationSecurityDomainAssociation:AviatrixSegmentationSecurityDomainAssociation test transit_gateway_name~security_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.