LoadTestArgs

data class LoadTestArgs(val description: Output<String>? = null, val identity: Output<SystemAssignedServiceIdentityArgs>? = null, val loadTestName: Output<String>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<LoadTestArgs>

LoadTest details API Version: 2021-12-01-preview.

Example Usage

LoadTests_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var loadTest = new AzureNative.LoadTestService.LoadTest("loadTest", new()
{
Description = "This is new load test resource",
Identity = new AzureNative.LoadTestService.Inputs.SystemAssignedServiceIdentityArgs
{
Type = "SystemAssigned",
},
LoadTestName = "myLoadTest",
Location = "westus",
ResourceGroupName = "dummyrg",
Tags =
{
{ "Team", "Dev Exp" },
},
});
});
package main
import (
loadtestservice "github.com/pulumi/pulumi-azure-native-sdk/loadtestservice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := loadtestservice.NewLoadTest(ctx, "loadTest", &loadtestservice.LoadTestArgs{
Description: pulumi.String("This is new load test resource"),
Identity: &loadtestservice.SystemAssignedServiceIdentityArgs{
Type: pulumi.String("SystemAssigned"),
},
LoadTestName: pulumi.String("myLoadTest"),
Location: pulumi.String("westus"),
ResourceGroupName: pulumi.String("dummyrg"),
Tags: pulumi.StringMap{
"Team": pulumi.String("Dev Exp"),
},
})
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.loadtestservice.LoadTest;
import com.pulumi.azurenative.loadtestservice.LoadTestArgs;
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 loadTest = new LoadTest("loadTest", LoadTestArgs.builder()
.description("This is new load test resource")
.identity(Map.of("type", "SystemAssigned"))
.loadTestName("myLoadTest")
.location("westus")
.resourceGroupName("dummyrg")
.tags(Map.of("Team", "Dev Exp"))
.build());
}
}

Import

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

$ pulumi import azure-native:loadtestservice:LoadTest myLoadTest /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, identity: Output<SystemAssignedServiceIdentityArgs>? = null, loadTestName: Output<String>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val description: Output<String>? = null

Description of the resource.

Link copied to clipboard

The type of identity used for the resource.

Link copied to clipboard
val loadTestName: Output<String>? = null

Load Test resource name.

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): LoadTestArgs