![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.devtestlab.kotlin.EnvironmentArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.devtestlab.kotlin
import com.pulumi.azurenative.devtestlab.EnvironmentArgs.builder
import com.pulumi.azurenative.devtestlab.kotlin.inputs.EnvironmentDeploymentPropertiesArgs
import com.pulumi.azurenative.devtestlab.kotlin.inputs.EnvironmentDeploymentPropertiesArgsBuilder
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.Map
import kotlin.jvm.JvmName
/**
* An environment, which is essentially an ARM template deployment.
* 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
* ### Environments_CreateOrUpdate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var environment = new AzureNative.DevTestLab.Environment("environment", new()
* {
* DeploymentProperties = new AzureNative.DevTestLab.Inputs.EnvironmentDeploymentPropertiesArgs
* {
* ArmTemplateId = "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}",
* Parameters = new() { },
* },
* LabName = "{labName}",
* Name = "{environmentName}",
* ResourceGroupName = "resourceGroupName",
* UserName = "@me",
* });
* });
* ```
* ```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.NewEnvironment(ctx, "environment", &devtestlab.EnvironmentArgs{
* DeploymentProperties: &devtestlab.EnvironmentDeploymentPropertiesArgs{
* ArmTemplateId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}"),
* Parameters: devtestlab.ArmTemplateParameterPropertiesArray{},
* },
* LabName: pulumi.String("{labName}"),
* Name: pulumi.String("{environmentName}"),
* ResourceGroupName: pulumi.String("resourceGroupName"),
* UserName: pulumi.String("@me"),
* })
* 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.Environment;
* import com.pulumi.azurenative.devtestlab.EnvironmentArgs;
* import com.pulumi.azurenative.devtestlab.inputs.EnvironmentDeploymentPropertiesArgs;
* 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 environment = new Environment("environment", EnvironmentArgs.builder()
* .deploymentProperties(EnvironmentDeploymentPropertiesArgs.builder()
* .armTemplateId("/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}")
* .parameters()
* .build())
* .labName("{labName}")
* .name("{environmentName}")
* .resourceGroupName("resourceGroupName")
* .userName("@me")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:devtestlab:Environment {environmentName} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments/{name}
* ```
* @property armTemplateDisplayName The display name of the Azure Resource Manager template that produced the environment.
* @property deploymentProperties The deployment properties of the environment.
* @property labName The name of the lab.
* @property location The location of the resource.
* @property name The name of the environment.
* @property resourceGroupName The name of the resource group.
* @property tags The tags of the resource.
* @property userName The name of the user profile.
*/
public data class EnvironmentArgs(
public val armTemplateDisplayName: Output? = null,
public val deploymentProperties: Output? = null,
public val labName: Output? = null,
public val location: Output? = null,
public val name: Output? = null,
public val resourceGroupName: Output? = null,
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy