EnvironmentTypeArgs

data class EnvironmentTypeArgs(val devCenterName: 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. API Version: 2022-09-01-preview.

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",
EnvironmentTypeName = "{environmentTypeName}",
ResourceGroupName = "rg1",
Tags =
{
{ "Owner", "superuser" },
},
});
});
package main
import (
devcenter "github.com/pulumi/pulumi-azure-native-sdk/devcenter"
"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"),
EnvironmentTypeName: pulumi.String("{environmentTypeName}"),
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")
.environmentTypeName("{environmentTypeName}")
.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 {environmentTypeName} /subscriptions/{subscriptionId}/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/environmentTypes/{environmentTypeName}

Constructors

Link copied to clipboard
constructor(devCenterName: 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 environmentTypeName: Output<String>? = null

The name of the environment type.

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

Name of the resource group within the Azure subscription.

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

Resource tags.

Functions

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