EnvironmentTypeArgs

data class EnvironmentTypeArgs(val devCenterName: Output<String>? = null, val displayName: Output<String>? = null, val environmentTypeName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<EnvironmentTypeArgs>

Represents an environment type. Uses Azure REST API version 2024-02-01. In version 2.x of the Azure Native provider, it used API version 2023-04-01. Other available API versions: 2023-04-01, 2023-08-01-preview, 2023-10-01-preview, 2024-05-01-preview, 2024-06-01-preview, 2024-07-01-preview, 2024-08-01-preview, 2024-10-01-preview, 2025-02-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native devcenter [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

EnvironmentTypes_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var environmentType = new AzureNative.DevCenter.EnvironmentType("environmentType", new()
{
DevCenterName = "Contoso",
DisplayName = "Dev",
EnvironmentTypeName = "DevTest",
ResourceGroupName = "rg1",
Tags =
{
{ "Owner", "superuser" },
},
});
});
package main
import (
devcenter "github.com/pulumi/pulumi-azure-native-sdk/devcenter/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devcenter.NewEnvironmentType(ctx, "environmentType", &devcenter.EnvironmentTypeArgs{
DevCenterName: pulumi.String("Contoso"),
DisplayName: pulumi.String("Dev"),
EnvironmentTypeName: pulumi.String("DevTest"),
ResourceGroupName: pulumi.String("rg1"),
Tags: pulumi.StringMap{
"Owner": pulumi.String("superuser"),
},
})
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.devcenter.EnvironmentType;
import com.pulumi.azurenative.devcenter.EnvironmentTypeArgs;
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 environmentType = new EnvironmentType("environmentType", EnvironmentTypeArgs.builder()
.devCenterName("Contoso")
.displayName("Dev")
.environmentTypeName("DevTest")
.resourceGroupName("rg1")
.tags(Map.of("Owner", "superuser"))
.build());
}
}

Import

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

$ pulumi import azure-native:devcenter:EnvironmentType DevTest /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}

Constructors

Link copied to clipboard
constructor(devCenterName: Output<String>? = null, displayName: Output<String>? = null, environmentTypeName: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

The name of the devcenter.

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

The display name of the environment type.

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

The name of the environment type.

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(): EnvironmentTypeArgs