1. Packages
  2. Azure Native
  3. API Docs
  4. servicenetworking
  5. AssociationsInterface
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.77.0 published on Thursday, Dec 12, 2024 by Pulumi

azure-native.servicenetworking.AssociationsInterface

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.77.0 published on Thursday, Dec 12, 2024 by Pulumi

    Association Subresource of Traffic Controller Azure REST API version: 2023-05-01-preview. Prior API version in Azure Native 1.x: 2022-10-01-preview.

    Other available API versions: 2022-10-01-preview, 2023-11-01, 2024-05-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/v2"
    	"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:   pulumi.String(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 com.pulumi.azurenative.servicenetworking.inputs.AssociationSubnetArgs;
    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(AssociationSubnetArgs.builder()
                    .id("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet")
                    .build())
                .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={
            "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[Union[str, 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 = "string",
        ResourceGroupName = "string",
        TrafficControllerName = "string",
        AssociationName = "string",
        Location = "string",
        Subnet = new AzureNative.ServiceNetworking.Inputs.AssociationSubnetArgs
        {
            Id = "string",
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := servicenetworking.NewAssociationsInterface(ctx, "associationsInterfaceResource", &servicenetworking.AssociationsInterfaceArgs{
    	AssociationType:       pulumi.String("string"),
    	ResourceGroupName:     pulumi.String("string"),
    	TrafficControllerName: pulumi.String("string"),
    	AssociationName:       pulumi.String("string"),
    	Location:              pulumi.String("string"),
    	Subnet: &servicenetworking.AssociationSubnetArgs{
    		Id: pulumi.String("string"),
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var associationsInterfaceResource = new AssociationsInterface("associationsInterfaceResource", AssociationsInterfaceArgs.builder()
        .associationType("string")
        .resourceGroupName("string")
        .trafficControllerName("string")
        .associationName("string")
        .location("string")
        .subnet(AssociationSubnetArgs.builder()
            .id("string")
            .build())
        .tags(Map.of("string", "string"))
        .build());
    
    associations_interface_resource = azure_native.servicenetworking.AssociationsInterface("associationsInterfaceResource",
        association_type="string",
        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: "string",
        resourceGroupName: "string",
        trafficControllerName: "string",
        associationName: "string",
        location: "string",
        subnet: {
            id: "string",
        },
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:servicenetworking:AssociationsInterface
    properties:
        associationName: string
        associationType: string
        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

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

    The AssociationsInterface resource accepts the following input properties:

    AssociationType string | 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 string | 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 String | 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 string | 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 str | 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 String | "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 of Traffic Controller Association Resource
    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 of Traffic Controller Association Resource
    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 of Traffic Controller Association Resource
    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 of Traffic Controller Association Resource
    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 of Traffic Controller Association Resource
    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 of Traffic Controller Association Resource
    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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.77.0 published on Thursday, Dec 12, 2024 by Pulumi