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 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
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:
- Association
Type Pulumi.Azure Native. Service Networking. Association Type - Association Type
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Traffic
Controller stringName - traffic controller name for path
- Association
Name string - Name of Association
- Location string
- The geo-location where the resource lives
- Subnet
Pulumi.
Azure Native. Service Networking. Inputs. Association Subnet - Association Subnet
- Dictionary<string, string>
- Resource tags.
- Association
Type AssociationType - Association Type
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Traffic
Controller stringName - traffic controller name for path
- Association
Name string - Name of Association
- Location string
- The geo-location where the resource lives
- Subnet
Association
Subnet Args - Association Subnet
- map[string]string
- Resource tags.
- association
Type AssociationType - Association Type
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- traffic
Controller StringName - traffic controller name for path
- association
Name String - Name of Association
- location String
- The geo-location where the resource lives
- subnet
Association
Subnet - Association Subnet
- Map<String,String>
- Resource tags.
- association
Type AssociationType - Association Type
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- traffic
Controller stringName - traffic controller name for path
- association
Name string - Name of Association
- location string
- The geo-location where the resource lives
- subnet
Association
Subnet - Association Subnet
- {[key: string]: string}
- Resource tags.
- association_
type AssociationType - Association Type
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- traffic_
controller_ strname - traffic controller name for path
- association_
name str - Name of Association
- location str
- The geo-location where the resource lives
- subnet
Association
Subnet Args - Association Subnet
- Mapping[str, str]
- Resource tags.
- association
Type "subnets" - Association Type
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- traffic
Controller StringName - traffic controller name for path
- association
Name String - Name of Association
- location String
- The geo-location where the resource lives
- subnet Property Map
- Association Subnet
- 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
- Provisioning
State string - Provisioning State
- System
Data Pulumi.Azure Native. Service Networking. Outputs. System Data Response - 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
- Provisioning
State string - Provisioning State
- System
Data SystemData Response - 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
- provisioning
State String - Provisioning State
- system
Data SystemData Response - 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
- provisioning
State string - Provisioning State
- system
Data SystemData Response - 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 SystemData Response - 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
- provisioning
State String - Provisioning State
- system
Data 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
- Association
Type Subnets - subnets
- Subnets
- subnets
- Subnets
- subnets
- SUBNETS
- subnets
- "subnets"
- subnets
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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