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

aviatrix logo
Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix

    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",
        });
    
    });
    
    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
    	})
    }
    
    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());
    
        }
    }
    
    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")
    
    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",
    });
    
    resources:
      # Create an Aviatrix Segmentation Security Domain Association
      testSegmentationSecurityDomainAssociation:
        type: aviatrix:AviatrixSegmentationSecurityDomainAssociation
        properties:
          attachmentName: attachment-name
          securityDomainName: security-domain-name
          transitGatewayName: transit-gw-name
    

    Create AviatrixSegmentationSecurityDomainAssociation Resource

    new AviatrixSegmentationSecurityDomainAssociation(name: string, args: AviatrixSegmentationSecurityDomainAssociationArgs, opts?: CustomResourceOptions);
    @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)
    @overload
    def AviatrixSegmentationSecurityDomainAssociation(resource_name: str,
                                                      args: AviatrixSegmentationSecurityDomainAssociationArgs,
                                                      opts: Optional[ResourceOptions] = 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.
    
    
    name string
    The unique name of the resource.
    args AviatrixSegmentationSecurityDomainAssociationArgs
    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 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 string
    The unique name of the resource.
    args AviatrixSegmentationSecurityDomainAssociationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AviatrixSegmentationSecurityDomainAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AviatrixSegmentationSecurityDomainAssociationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    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

    The AviatrixSegmentationSecurityDomainAssociation resource accepts the following input properties:

    AttachmentName string
    Name of the transit gateway attachment, Spoke or Edge, to associate with the security domain.
    SecurityDomainName string
    Name of the Segmentation Security Domain.
    TransitGatewayName string
    Name of the Transit Gateway.
    AttachmentName string
    Name of the transit gateway attachment, Spoke or Edge, to associate with the security domain.
    SecurityDomainName string
    Name of the Segmentation Security Domain.
    TransitGatewayName string
    Name of the Transit Gateway.
    attachmentName String
    Name of the transit gateway attachment, Spoke or Edge, to associate with the security domain.
    securityDomainName String
    Name of the Segmentation Security Domain.
    transitGatewayName String
    Name of the Transit Gateway.
    attachmentName string
    Name of the transit gateway attachment, Spoke or Edge, to associate with the security domain.
    securityDomainName string
    Name of the Segmentation Security Domain.
    transitGatewayName string
    Name of the Transit Gateway.
    attachment_name str
    Name of the transit gateway attachment, Spoke or Edge, to associate with the security domain.
    security_domain_name str
    Name of the Segmentation Security 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 security domain.
    securityDomainName String
    Name of the Segmentation Security Domain.
    transitGatewayName 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)
    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 security domain.
    SecurityDomainName string
    Name of the Segmentation Security Domain.
    TransitGatewayName string
    Name of the Transit Gateway.
    AttachmentName string
    Name of the transit gateway attachment, Spoke or Edge, to associate with the security domain.
    SecurityDomainName string
    Name of the Segmentation Security Domain.
    TransitGatewayName string
    Name of the Transit Gateway.
    attachmentName String
    Name of the transit gateway attachment, Spoke or Edge, to associate with the security domain.
    securityDomainName String
    Name of the Segmentation Security Domain.
    transitGatewayName String
    Name of the Transit Gateway.
    attachmentName string
    Name of the transit gateway attachment, Spoke or Edge, to associate with the security domain.
    securityDomainName string
    Name of the Segmentation Security Domain.
    transitGatewayName string
    Name of the Transit Gateway.
    attachment_name str
    Name of the transit gateway attachment, Spoke or Edge, to associate with the security domain.
    security_domain_name str
    Name of the Segmentation Security 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 security domain.
    securityDomainName String
    Name of the Segmentation Security Domain.
    transitGatewayName 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
    

    Package Details

    Repository
    aviatrix astipkovits/pulumi-aviatrix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aviatrix Terraform Provider.
    aviatrix logo
    Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix