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.resources.kotlin.TemplateSpecArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.resources.kotlin
import com.pulumi.azurenative.resources.TemplateSpecArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Any
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Template Spec object.
* Azure REST API version: 2022-02-01. Prior API version in Azure Native 1.x: 2022-02-01.
* ## Example Usage
* ### TemplateSpecsCreateUpdate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var templateSpec = new AzureNative.Resources.TemplateSpec("templateSpec", new()
* {
* Description = "A very simple Template Spec",
* Location = "eastus",
* ResourceGroupName = "templateSpecRG",
* TemplateSpecName = "simpleTemplateSpec",
* });
* });
* ```
* ```go
* package main
* import (
* resources "github.com/pulumi/pulumi-azure-native-sdk/resources/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := resources.NewTemplateSpec(ctx, "templateSpec", &resources.TemplateSpecArgs{
* Description: pulumi.String("A very simple Template Spec"),
* Location: pulumi.String("eastus"),
* ResourceGroupName: pulumi.String("templateSpecRG"),
* TemplateSpecName: pulumi.String("simpleTemplateSpec"),
* })
* 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.resources.TemplateSpec;
* import com.pulumi.azurenative.resources.TemplateSpecArgs;
* 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 templateSpec = new TemplateSpec("templateSpec", TemplateSpecArgs.builder()
* .description("A very simple Template Spec")
* .location("eastus")
* .resourceGroupName("templateSpecRG")
* .templateSpecName("simpleTemplateSpec")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:resources:TemplateSpec simpleTemplateSpec /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}
* ```
* @property description Template Spec description.
* @property displayName Template Spec display name.
* @property location The location of the Template Spec. It cannot be changed after Template Spec creation. It must be one of the supported Azure locations.
* @property metadata The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property tags Resource tags.
* @property templateSpecName Name of the Template Spec.
*/
public data class TemplateSpecArgs(
public val description: Output? = null,
public val displayName: Output? = null,
public val location: Output? = null,
public val metadata: Output? = null,
public val resourceGroupName: Output? = null,
public val tags: Output>? = null,
public val templateSpecName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.resources.TemplateSpecArgs =
com.pulumi.azurenative.resources.TemplateSpecArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.displayName(displayName?.applyValue({ args0 -> args0 }))
.location(location?.applyValue({ args0 -> args0 }))
.metadata(metadata?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.templateSpecName(templateSpecName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TemplateSpecArgs].
*/
@PulumiTagMarker
public class TemplateSpecArgsBuilder internal constructor() {
private var description: Output? = null
private var displayName: Output? = null
private var location: Output? = null
private var metadata: Output? = null
private var resourceGroupName: Output? = null
private var tags: Output>? = null
private var templateSpecName: Output? = null
/**
* @param value Template Spec description.
*/
@JvmName("tbnuwyudtfflvmfk")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Template Spec display name.
*/
@JvmName("nshywlymifogpnxc")
public suspend fun displayName(`value`: Output) {
this.displayName = value
}
/**
* @param value The location of the Template Spec. It cannot be changed after Template Spec creation. It must be one of the supported Azure locations.
*/
@JvmName("wixydffhmqpvtoah")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
*/
@JvmName("colhcrgqcgakdrop")
public suspend fun metadata(`value`: Output) {
this.metadata = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("ljuaqpdvsicqfigq")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Resource tags.
*/
@JvmName("gnxwcwwsidlemyhv")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value Name of the Template Spec.
*/
@JvmName("lbnqaaqxmosnwgbg")
public suspend fun templateSpecName(`value`: Output) {
this.templateSpecName = value
}
/**
* @param value Template Spec description.
*/
@JvmName("mjqnsjvfkpddaacw")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value Template Spec display name.
*/
@JvmName("miyjfjprqshderip")
public suspend fun displayName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.displayName = mapped
}
/**
* @param value The location of the Template Spec. It cannot be changed after Template Spec creation. It must be one of the supported Azure locations.
*/
@JvmName("oxmsiksyjoudkglq")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
*/
@JvmName("nsbkorsatxxvqrpg")
public suspend fun metadata(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.metadata = mapped
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("mibnkccqfgrudpib")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value Resource tags.
*/
@JvmName("mxovculbeejkicwx")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values Resource tags.
*/
@JvmName("vqgykdvywkurvsft")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param value Name of the Template Spec.
*/
@JvmName("kcaqlogisnqicajb")
public suspend fun templateSpecName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.templateSpecName = mapped
}
internal fun build(): TemplateSpecArgs = TemplateSpecArgs(
description = description,
displayName = displayName,
location = location,
metadata = metadata,
resourceGroupName = resourceGroupName,
tags = tags,
templateSpecName = templateSpecName,
)
}