Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.devtestlab.kotlin
import com.pulumi.azurenative.devtestlab.LabArgs.builder
import com.pulumi.azurenative.devtestlab.kotlin.enums.EnvironmentPermission
import com.pulumi.azurenative.devtestlab.kotlin.enums.PremiumDataDisk
import com.pulumi.azurenative.devtestlab.kotlin.enums.StorageType
import com.pulumi.azurenative.devtestlab.kotlin.inputs.LabAnnouncementPropertiesArgs
import com.pulumi.azurenative.devtestlab.kotlin.inputs.LabAnnouncementPropertiesArgsBuilder
import com.pulumi.azurenative.devtestlab.kotlin.inputs.LabSupportPropertiesArgs
import com.pulumi.azurenative.devtestlab.kotlin.inputs.LabSupportPropertiesArgsBuilder
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* A lab.
* Azure REST API version: 2018-09-15. Prior API version in Azure Native 1.x: 2018-09-15.
* Other available API versions: 2016-05-15.
* ## Example Usage
* ### Labs_CreateOrUpdate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var lab = new AzureNative.DevTestLab.Lab("lab", new()
* {
* LabStorageType = "{Standard|Premium}",
* Location = "{location}",
* Name = "{labName}",
* ResourceGroupName = "resourceGroupName",
* Tags =
* {
* { "tagName1", "tagValue1" },
* },
* });
* });
* ```
* ```go
* package main
* import (
* devtestlab "github.com/pulumi/pulumi-azure-native-sdk/devtestlab/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := devtestlab.NewLab(ctx, "lab", &devtestlab.LabArgs{
* LabStorageType: pulumi.String("{Standard|Premium}"),
* Location: pulumi.String("{location}"),
* Name: pulumi.String("{labName}"),
* ResourceGroupName: pulumi.String("resourceGroupName"),
* Tags: pulumi.StringMap{
* "tagName1": pulumi.String("tagValue1"),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.devtestlab.Lab;
* import com.pulumi.azurenative.devtestlab.LabArgs;
* 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 lab = new Lab("lab", LabArgs.builder()
* .labStorageType("{Standard|Premium}")
* .location("{location}")
* .name("{labName}")
* .resourceGroupName("resourceGroupName")
* .tags(Map.of("tagName1", "tagValue1"))
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:devtestlab:Lab {labName} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}
* ```
* @property announcement The properties of any lab announcement associated with this lab
* @property environmentPermission The access rights to be granted to the user when provisioning an environment
* @property extendedProperties Extended properties of the lab used for experimental features
* @property labStorageType Type of storage used by the lab. It can be either Premium or Standard. Default is Premium.
* @property location The location of the resource.
* @property mandatoryArtifactsResourceIdsLinux The ordered list of artifact resource IDs that should be applied on all Linux VM creations by default, prior to the artifacts specified by the user.
* @property mandatoryArtifactsResourceIdsWindows The ordered list of artifact resource IDs that should be applied on all Windows VM creations by default, prior to the artifacts specified by the user.
* @property name The name of the lab.
* @property premiumDataDisks The setting to enable usage of premium data disks.
* When its value is 'Enabled', creation of standard or premium data disks is allowed.
* When its value is 'Disabled', only creation of standard data disks is allowed.
* @property resourceGroupName The name of the resource group.
* @property support The properties of any lab support message associated with this lab
* @property tags The tags of the resource.
*/
public data class LabArgs(
public val announcement: Output? = null,
public val environmentPermission: Output>? = null,
public val extendedProperties: Output