All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
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.
com.pulumi.azurenative.devtestlab.kotlin.ServiceRunnerArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.devtestlab.kotlin
import com.pulumi.azurenative.devtestlab.ServiceRunnerArgs.builder
import com.pulumi.azurenative.devtestlab.kotlin.inputs.IdentityPropertiesArgs
import com.pulumi.azurenative.devtestlab.kotlin.inputs.IdentityPropertiesArgsBuilder
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
/**
* A container for a managed identity to execute DevTest lab services.
* Azure REST API version: 2018-09-15. Prior API version in Azure Native 1.x: 2018-09-15.
* ## Example Usage
* ### ServiceRunners_CreateOrUpdate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var serviceRunner = new AzureNative.DevTestLab.ServiceRunner("serviceRunner", new()
* {
* Identity = new AzureNative.DevTestLab.Inputs.IdentityPropertiesArgs
* {
* ClientSecretUrl = "{identityClientSecretUrl}",
* PrincipalId = "{identityPrincipalId}",
* TenantId = "{identityTenantId}",
* Type = "{identityType}",
* },
* LabName = "{devtestlabName}",
* Location = "{location}",
* Name = "{servicerunnerName}",
* 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.NewServiceRunner(ctx, "serviceRunner", &devtestlab.ServiceRunnerArgs{
* Identity: &devtestlab.IdentityPropertiesArgs{
* ClientSecretUrl: pulumi.String("{identityClientSecretUrl}"),
* PrincipalId: pulumi.String("{identityPrincipalId}"),
* TenantId: pulumi.String("{identityTenantId}"),
* Type: pulumi.String("{identityType}"),
* },
* LabName: pulumi.String("{devtestlabName}"),
* Location: pulumi.String("{location}"),
* Name: pulumi.String("{servicerunnerName}"),
* 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.ServiceRunner;
* import com.pulumi.azurenative.devtestlab.ServiceRunnerArgs;
* import com.pulumi.azurenative.devtestlab.inputs.IdentityPropertiesArgs;
* 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 serviceRunner = new ServiceRunner("serviceRunner", ServiceRunnerArgs.builder()
* .identity(IdentityPropertiesArgs.builder()
* .clientSecretUrl("{identityClientSecretUrl}")
* .principalId("{identityPrincipalId}")
* .tenantId("{identityTenantId}")
* .type("{identityType}")
* .build())
* .labName("{devtestlabName}")
* .location("{location}")
* .name("{servicerunnerName}")
* .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:ServiceRunner {serviceRunnerName} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/servicerunners/{name}
* ```
* @property identity The identity of the resource.
* @property labName The name of the lab.
* @property location The location of the resource.
* @property name The name of the service runner.
* @property resourceGroupName The name of the resource group.
* @property tags The tags of the resource.
*/
public data class ServiceRunnerArgs(
public val identity: 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>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.devtestlab.ServiceRunnerArgs =
com.pulumi.azurenative.devtestlab.ServiceRunnerArgs.builder()
.identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.labName(labName?.applyValue({ args0 -> args0 }))
.location(location?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
).build()
}
/**
* Builder for [ServiceRunnerArgs].
*/
@PulumiTagMarker
public class ServiceRunnerArgsBuilder internal constructor() {
private var identity: Output? = null
private var labName: Output? = null
private var location: Output? = null
private var name: Output? = null
private var resourceGroupName: Output? = null
private var tags: Output>? = null
/**
* @param value The identity of the resource.
*/
@JvmName("jdqswihpitbunpmg")
public suspend fun identity(`value`: Output) {
this.identity = value
}
/**
* @param value The name of the lab.
*/
@JvmName("dwssrdhuobruysed")
public suspend fun labName(`value`: Output) {
this.labName = value
}
/**
* @param value The location of the resource.
*/
@JvmName("qogqlmhveieuwevs")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The name of the service runner.
*/
@JvmName("uouvpmknvbsyujee")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The name of the resource group.
*/
@JvmName("uwuwqxdujatwwfqv")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The tags of the resource.
*/
@JvmName("bkkyoxwshafaxclm")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value The identity of the resource.
*/
@JvmName("wmnypbniviqerami")
public suspend fun identity(`value`: IdentityPropertiesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.identity = mapped
}
/**
* @param argument The identity of the resource.
*/
@JvmName("hgleqhgggochnhul")
public suspend fun identity(argument: suspend IdentityPropertiesArgsBuilder.() -> Unit) {
val toBeMapped = IdentityPropertiesArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.identity = mapped
}
/**
* @param value The name of the lab.
*/
@JvmName("fqddddohecucimhc")
public suspend fun labName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.labName = mapped
}
/**
* @param value The location of the resource.
*/
@JvmName("dcovlfythuvyttsr")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value The name of the service runner.
*/
@JvmName("yennakypibxscthe")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The name of the resource group.
*/
@JvmName("vwegvmmueuyrwgyq")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value The tags of the resource.
*/
@JvmName("abdwkicswvsfhrjk")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values The tags of the resource.
*/
@JvmName("cmvxqykdunjtevre")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
internal fun build(): ServiceRunnerArgs = ServiceRunnerArgs(
identity = identity,
labName = labName,
location = location,
name = name,
resourceGroupName = resourceGroupName,
tags = tags,
)
}