TemplateSpecVersionArgs

data class TemplateSpecVersionArgs(val description: Output<String>? = null, val linkedTemplates: Output<List<LinkedTemplateArtifactArgs>>? = null, val location: Output<String>? = null, val mainTemplate: Output<Any>? = null, val metadata: Output<Any>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val templateSpecName: Output<String>? = null, val templateSpecVersion: Output<String>? = null, val uiFormDefinition: Output<Any>? = null) : ConvertibleToJava<TemplateSpecVersionArgs>

Template Spec Version object. API Version: 2022-02-01.

Example Usage

TemplateSpecVersionsCreateUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var templateSpecVersion = new AzureNative.Resources.TemplateSpecVersion("templateSpecVersion", new()
{
Description = "This is version v1.0 of our template content",
Location = "eastus",
MainTemplate =
{
{ "$schema", "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#" },
{ "contentVersion", "1.0.0.0" },
{ "parameters", null },
{ "resources", new[] {} },
},
ResourceGroupName = "templateSpecRG",
TemplateSpecName = "simpleTemplateSpec",
TemplateSpecVersion = "v1.0",
});
});
package main
import (
resources "github.com/pulumi/pulumi-azure-native-sdk/resources"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := resources.NewTemplateSpecVersion(ctx, "templateSpecVersion", &resources.TemplateSpecVersionArgs{
Description: pulumi.String("This is version v1.0 of our template content"),
Location: pulumi.String("eastus"),
MainTemplate: pulumi.Any{
Schema: "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
ContentVersion: "1.0.0.0",
Parameters: nil,
Resources: []interface{}{},
},
ResourceGroupName: pulumi.String("templateSpecRG"),
TemplateSpecName: pulumi.String("simpleTemplateSpec"),
TemplateSpecVersion: pulumi.String("v1.0"),
})
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.resources.TemplateSpecVersion;
import com.pulumi.azurenative.resources.TemplateSpecVersionArgs;
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 templateSpecVersion = new TemplateSpecVersion("templateSpecVersion", TemplateSpecVersionArgs.builder()
.description("This is version v1.0 of our template content")
.location("eastus")
.mainTemplate(Map.ofEntries(
Map.entry("$schema", "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#"),
Map.entry("contentVersion", "1.0.0.0"),
Map.entry("parameters", ),
Map.entry("resources", )
))
.resourceGroupName("templateSpecRG")
.templateSpecName("simpleTemplateSpec")
.templateSpecVersion("v1.0")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:resources:TemplateSpecVersion v1.0 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/templateSpecRG/providers/Microsoft.Resources/templateSpecs/simpleTemplateSpec/versions/v1.0

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, linkedTemplates: Output<List<LinkedTemplateArtifactArgs>>? = null, location: Output<String>? = null, mainTemplate: Output<Any>? = null, metadata: Output<Any>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null, templateSpecName: Output<String>? = null, templateSpecVersion: Output<String>? = null, uiFormDefinition: Output<Any>? = null)

Properties

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

Template Spec version description.

Link copied to clipboard

An array of linked template artifacts.

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

The location of the Template Spec Version. It must match the location of the parent Template Spec.

Link copied to clipboard
val mainTemplate: Output<Any>? = null

The main Azure Resource Manager template content.

Link copied to clipboard
val metadata: Output<Any>? = null

The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.

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

The name of the resource group. The name is case insensitive.

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

Resource tags.

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

Name of the Template Spec.

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

The version of the Template Spec.

Link copied to clipboard
val uiFormDefinition: Output<Any>? = null

The Azure Resource Manager template UI definition content.

Functions

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