TemplateSpec

class TemplateSpec : KotlinCustomResource

Template Spec object. Uses Azure REST API version 2022-02-01. In version 2.x of the Azure Native provider, it used API version 2022-02-01. Other available API versions: 2021-03-01-preview, 2021-05-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native resources [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

TemplateSpecsCreateUpdate

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",
});
});
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
})
}
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.

$ pulumi import azure-native:resources:TemplateSpec simpleTemplateSpec /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

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

Template Spec description.

Link copied to clipboard
val displayName: Output<String>?

Template Spec display name.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

The location of the Template Spec. It cannot be changed after Template Spec creation. It must be one of the supported Azure locations.

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

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

Link copied to clipboard
val name: Output<String>

Name of this resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

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

Resource tags.

Link copied to clipboard
val type: Output<String>

Type of this resource.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

High-level information about the versions within this Template Spec. The keys are the version names. Only populated if the $expand query parameter is set to 'versions'.