1. Packages
  2. Azure Native v1
  3. API Docs
  4. servicenetworking
  5. AssociationsInterface
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.servicenetworking.AssociationsInterface

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    Association Subresource of Traffic Controller API Version: 2022-10-01-preview.

    Example Usage

    Put Association

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var associationsInterface = new AzureNative.ServiceNetworking.AssociationsInterface("associationsInterface", new()
        {
            AssociationName = "as1",
            AssociationType = AzureNative.ServiceNetworking.AssociationType.Subnets,
            Location = "NorthCentralUS",
            ResourceGroupName = "rg1",
            Subnet = new AzureNative.ServiceNetworking.Inputs.AssociationSubnetArgs
            {
                Id = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet",
            },
            TrafficControllerName = "tc1",
        });
    
    });
    
    package main
    
    import (
    	servicenetworking "github.com/pulumi/pulumi-azure-native-sdk/servicenetworking"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := servicenetworking.NewAssociationsInterface(ctx, "associationsInterface", &servicenetworking.AssociationsInterfaceArgs{
    			AssociationName:   pulumi.String("as1"),
    			AssociationType:   servicenetworking.AssociationTypeSubnets,
    			Location:          pulumi.String("NorthCentralUS"),
    			ResourceGroupName: pulumi.String("rg1"),
    			Subnet: &servicenetworking.AssociationSubnetArgs{
    				Id: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"),
    			},
    			TrafficControllerName: pulumi.String("tc1"),
    		})
    		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.azurenative.servicenetworking.AssociationsInterface;
    import com.pulumi.azurenative.servicenetworking.AssociationsInterfaceArgs;
    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 associationsInterface = new AssociationsInterface("associationsInterface", AssociationsInterfaceArgs.builder()        
                .associationName("as1")
                .associationType("subnets")
                .location("NorthCentralUS")
                .resourceGroupName("rg1")
                .subnet(Map.of("id", "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"))
                .trafficControllerName("tc1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    associations_interface = azure_native.servicenetworking.AssociationsInterface("associationsInterface",
        association_name="as1",
        association_type=azure_native.servicenetworking.AssociationType.SUBNETS,
        location="NorthCentralUS",
        resource_group_name="rg1",
        subnet=azure_native.servicenetworking.AssociationSubnetArgs(
            id="/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet",
        ),
        traffic_controller_name="tc1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const associationsInterface = new azure_native.servicenetworking.AssociationsInterface("associationsInterface", {
        associationName: "as1",
        associationType: azure_native.servicenetworking.AssociationType.Subnets,
        location: "NorthCentralUS",
        resourceGroupName: "rg1",
        subnet: {
            id: "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet",
        },
        trafficControllerName: "tc1",
    });
    
    resources:
      associationsInterface:
        type: azure-native:servicenetworking:AssociationsInterface
        properties:
          associationName: as1
          associationType: subnets
          location: NorthCentralUS
          resourceGroupName: rg1
          subnet:
            id: /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet
          trafficControllerName: tc1
    

    Create AssociationsInterface Resource

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

    Constructor syntax

    new AssociationsInterface(name: string, args: AssociationsInterfaceArgs, opts?: CustomResourceOptions);
    @overload
    def AssociationsInterface(resource_name: str,
                              args: AssociationsInterfaceArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def AssociationsInterface(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              association_type: Optional[AssociationType] = None,
                              resource_group_name: Optional[str] = None,
                              traffic_controller_name: Optional[str] = None,
                              association_name: Optional[str] = None,
                              location: Optional[str] = None,
                              subnet: Optional[AssociationSubnetArgs] = None,
                              tags: Optional[Mapping[str, str]] = None)
    func NewAssociationsInterface(ctx *Context, name string, args AssociationsInterfaceArgs, opts ...ResourceOption) (*AssociationsInterface, error)
    public AssociationsInterface(string name, AssociationsInterfaceArgs args, CustomResourceOptions? opts = null)
    public AssociationsInterface(String name, AssociationsInterfaceArgs args)
    public AssociationsInterface(String name, AssociationsInterfaceArgs args, CustomResourceOptions options)
    
    type: azure-native:servicenetworking:AssociationsInterface
    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 AssociationsInterfaceArgs
    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 AssociationsInterfaceArgs
    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 AssociationsInterfaceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AssociationsInterfaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AssociationsInterfaceArgs
    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 associationsInterfaceResource = new AzureNative.Servicenetworking.AssociationsInterface("associationsInterfaceResource", new()
    {
        AssociationType = "subnets",
        ResourceGroupName = "string",
        TrafficControllerName = "string",
        AssociationName = "string",
        Location = "string",
        Subnet = 
        {
            { "id", "string" },
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := servicenetworking.NewAssociationsInterface(ctx, "associationsInterfaceResource", &servicenetworking.AssociationsInterfaceArgs{
    	AssociationType:       "subnets",
    	ResourceGroupName:     "string",
    	TrafficControllerName: "string",
    	AssociationName:       "string",
    	Location:              "string",
    	Subnet: map[string]interface{}{
    		"id": "string",
    	},
    	Tags: map[string]interface{}{
    		"string": "string",
    	},
    })
    
    var associationsInterfaceResource = new AssociationsInterface("associationsInterfaceResource", AssociationsInterfaceArgs.builder()
        .associationType("subnets")
        .resourceGroupName("string")
        .trafficControllerName("string")
        .associationName("string")
        .location("string")
        .subnet(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .build());
    
    associations_interface_resource = azure_native.servicenetworking.AssociationsInterface("associationsInterfaceResource",
        association_type=subnets,
        resource_group_name=string,
        traffic_controller_name=string,
        association_name=string,
        location=string,
        subnet={
            id: string,
        },
        tags={
            string: string,
        })
    
    const associationsInterfaceResource = new azure_native.servicenetworking.AssociationsInterface("associationsInterfaceResource", {
        associationType: "subnets",
        resourceGroupName: "string",
        trafficControllerName: "string",
        associationName: "string",
        location: "string",
        subnet: {
            id: "string",
        },
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:servicenetworking:AssociationsInterface
    properties:
        associationName: string
        associationType: subnets
        location: string
        resourceGroupName: string
        subnet:
            id: string
        tags:
            string: string
        trafficControllerName: string
    

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

    AssociationType Pulumi.AzureNative.ServiceNetworking.AssociationType
    Association Type
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    TrafficControllerName string
    traffic controller name for path
    AssociationName string
    Name of Association
    Location string
    The geo-location where the resource lives
    Subnet Pulumi.AzureNative.ServiceNetworking.Inputs.AssociationSubnet
    Association Subnet
    Tags Dictionary<string, string>
    Resource tags.
    AssociationType AssociationType
    Association Type
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    TrafficControllerName string
    traffic controller name for path
    AssociationName string
    Name of Association
    Location string
    The geo-location where the resource lives
    Subnet AssociationSubnetArgs
    Association Subnet
    Tags map[string]string
    Resource tags.
    associationType AssociationType
    Association Type
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    trafficControllerName String
    traffic controller name for path
    associationName String
    Name of Association
    location String
    The geo-location where the resource lives
    subnet AssociationSubnet
    Association Subnet
    tags Map<String,String>
    Resource tags.
    associationType AssociationType
    Association Type
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    trafficControllerName string
    traffic controller name for path
    associationName string
    Name of Association
    location string
    The geo-location where the resource lives
    subnet AssociationSubnet
    Association Subnet
    tags {[key: string]: string}
    Resource tags.
    association_type AssociationType
    Association Type
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    traffic_controller_name str
    traffic controller name for path
    association_name str
    Name of Association
    location str
    The geo-location where the resource lives
    subnet AssociationSubnetArgs
    Association Subnet
    tags Mapping[str, str]
    Resource tags.
    associationType "subnets"
    Association Type
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    trafficControllerName String
    traffic controller name for path
    associationName String
    Name of Association
    location String
    The geo-location where the resource lives
    subnet Property Map
    Association Subnet
    tags Map<String>
    Resource tags.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AssociationsInterface resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    Provisioning State
    SystemData Pulumi.AzureNative.ServiceNetworking.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    Provisioning State
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    Provisioning State
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    provisioningState string
    Provisioning State
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    provisioning_state str
    Provisioning State
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    Provisioning State
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    AssociationSubnet, AssociationSubnetArgs

    Id string
    Association ID.
    Id string
    Association ID.
    id String
    Association ID.
    id string
    Association ID.
    id str
    Association ID.
    id String
    Association ID.

    AssociationSubnetResponse, AssociationSubnetResponseArgs

    Id string
    Association ID.
    Id string
    Association ID.
    id String
    Association ID.
    id string
    Association ID.
    id str
    Association ID.
    id String
    Association ID.

    AssociationType, AssociationTypeArgs

    Subnets
    subnets
    AssociationTypeSubnets
    subnets
    Subnets
    subnets
    Subnets
    subnets
    SUBNETS
    subnets
    "subnets"
    subnets

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:servicenetworking:AssociationsInterface associatedvnet-1 /subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi