azure-native.network.TrafficManagerUserMetricsKey
Explore with Pulumi AI
Class representing Traffic Manager User Metrics. Azure REST API version: 2022-04-01. Prior API version in Azure Native 1.x: 2018-08-01.
Other available API versions: 2017-09-01-preview, 2022-04-01-preview.
Example Usage
TrafficManagerUserMetricsKeys-PUT
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var trafficManagerUserMetricsKey = new AzureNative.Network.TrafficManagerUserMetricsKey("trafficManagerUserMetricsKey");
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewTrafficManagerUserMetricsKey(ctx, "trafficManagerUserMetricsKey", nil)
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.network.TrafficManagerUserMetricsKey;
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 trafficManagerUserMetricsKey = new TrafficManagerUserMetricsKey("trafficManagerUserMetricsKey");
}
}
import pulumi
import pulumi_azure_native as azure_native
traffic_manager_user_metrics_key = azure_native.network.TrafficManagerUserMetricsKey("trafficManagerUserMetricsKey")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const trafficManagerUserMetricsKey = new azure_native.network.TrafficManagerUserMetricsKey("trafficManagerUserMetricsKey", {});
resources:
trafficManagerUserMetricsKey:
type: azure-native:network:TrafficManagerUserMetricsKey
Create TrafficManagerUserMetricsKey Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TrafficManagerUserMetricsKey(name: string, args?: TrafficManagerUserMetricsKeyArgs, opts?: CustomResourceOptions);
@overload
def TrafficManagerUserMetricsKey(resource_name: str,
args: Optional[TrafficManagerUserMetricsKeyArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def TrafficManagerUserMetricsKey(resource_name: str,
opts: Optional[ResourceOptions] = None)
func NewTrafficManagerUserMetricsKey(ctx *Context, name string, args *TrafficManagerUserMetricsKeyArgs, opts ...ResourceOption) (*TrafficManagerUserMetricsKey, error)
public TrafficManagerUserMetricsKey(string name, TrafficManagerUserMetricsKeyArgs? args = null, CustomResourceOptions? opts = null)
public TrafficManagerUserMetricsKey(String name, TrafficManagerUserMetricsKeyArgs args)
public TrafficManagerUserMetricsKey(String name, TrafficManagerUserMetricsKeyArgs args, CustomResourceOptions options)
type: azure-native:network:TrafficManagerUserMetricsKey
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 TrafficManagerUserMetricsKeyArgs
- 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 TrafficManagerUserMetricsKeyArgs
- 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 TrafficManagerUserMetricsKeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TrafficManagerUserMetricsKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TrafficManagerUserMetricsKeyArgs
- 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 trafficManagerUserMetricsKeyResource = new AzureNative.Network.TrafficManagerUserMetricsKey("trafficManagerUserMetricsKeyResource");
example, err := network.NewTrafficManagerUserMetricsKey(ctx, "trafficManagerUserMetricsKeyResource", nil)
var trafficManagerUserMetricsKeyResource = new TrafficManagerUserMetricsKey("trafficManagerUserMetricsKeyResource");
traffic_manager_user_metrics_key_resource = azure_native.network.TrafficManagerUserMetricsKey("trafficManagerUserMetricsKeyResource")
const trafficManagerUserMetricsKeyResource = new azure_native.network.TrafficManagerUserMetricsKey("trafficManagerUserMetricsKeyResource", {});
type: azure-native:network:TrafficManagerUserMetricsKey
properties: {}
TrafficManagerUserMetricsKey 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 TrafficManagerUserMetricsKey resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the TrafficManagerUserMetricsKey resource produces the following output properties:
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:network:TrafficManagerUserMetricsKey default /subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0