azure-native.servicenetworking.AssociationsInterface

Explore with Pulumi AI

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

Example Usage

Put Association

using System.Collections.Generic;
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/go/azure/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.AssociationSubnetResponse{
				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.AssociationSubnetResponseArgs(
        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

new AssociationsInterface(name: string, args: AssociationsInterfaceArgs, opts?: CustomResourceOptions);
@overload
def AssociationsInterface(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          association_name: Optional[str] = None,
                          association_type: Optional[AssociationType] = None,
                          location: Optional[str] = None,
                          resource_group_name: Optional[str] = None,
                          subnet: Optional[AssociationSubnetArgs] = None,
                          tags: Optional[Mapping[str, str]] = None,
                          traffic_controller_name: Optional[str] = None)
@overload
def AssociationsInterface(resource_name: str,
                          args: AssociationsInterfaceArgs,
                          opts: Optional[ResourceOptions] = 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.

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.

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.AssociationSubnetArgs

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 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 AssociationSubnetArgs

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

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

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

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

SystemDataResponse

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 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0