Azure Native

Pulumi Official
Package maintained by Pulumi
v1.67.0 published on Tuesday, Jul 12, 2022 by Pulumi

TemplateSpecVersion

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

Example Usage

TemplateSpecVersionsCreateUpdate

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var templateSpecVersion = new AzureNative.Resources.TemplateSpecVersion("templateSpecVersion", new AzureNative.Resources.TemplateSpecVersionArgs
        {
            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",  },
                { "resources", {} },
            },
            ResourceGroupName = "templateSpecRG",
            TemplateSpecName = "simpleTemplateSpec",
            TemplateSpecVersion = "v1.0",
        });
    }

}
package main

import (
	"fmt"

	resources "github.com/pulumi/pulumi-azure-native/sdk/go/azure/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{
				fmt.Sprintf("$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 java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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 pulumi
import pulumi_azure_native as azure_native

template_spec_version = azure_native.resources.TemplateSpecVersion("templateSpecVersion",
    description="This is version v1.0 of our template content",
    location="eastus",
    main_template={
        "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
        "contentVersion": "1.0.0.0",
        "parameters": {},
        "resources": [],
    },
    resource_group_name="templateSpecRG",
    template_spec_name="simpleTemplateSpec",
    template_spec_version="v1.0")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const templateSpecVersion = new azure_native.resources.TemplateSpecVersion("templateSpecVersion", {
    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: {},
        resources: [],
    },
    resourceGroupName: "templateSpecRG",
    templateSpecName: "simpleTemplateSpec",
    templateSpecVersion: "v1.0",
});
resources:
  templateSpecVersion:
    type: azure-native:resources:TemplateSpecVersion
    properties:
      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: {}
        resources: []
      resourceGroupName: templateSpecRG
      templateSpecName: simpleTemplateSpec
      templateSpecVersion: v1.0

Create a TemplateSpecVersion Resource

new TemplateSpecVersion(name: string, args: TemplateSpecVersionArgs, opts?: CustomResourceOptions);
@overload
def TemplateSpecVersion(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        description: Optional[str] = None,
                        linked_templates: Optional[Sequence[LinkedTemplateArtifactArgs]] = None,
                        location: Optional[str] = None,
                        main_template: Optional[Any] = None,
                        metadata: Optional[Any] = None,
                        resource_group_name: Optional[str] = None,
                        tags: Optional[Mapping[str, str]] = None,
                        template_spec_name: Optional[str] = None,
                        template_spec_version: Optional[str] = None,
                        ui_form_definition: Optional[Any] = None)
@overload
def TemplateSpecVersion(resource_name: str,
                        args: TemplateSpecVersionArgs,
                        opts: Optional[ResourceOptions] = None)
func NewTemplateSpecVersion(ctx *Context, name string, args TemplateSpecVersionArgs, opts ...ResourceOption) (*TemplateSpecVersion, error)
public TemplateSpecVersion(string name, TemplateSpecVersionArgs args, CustomResourceOptions? opts = null)
public TemplateSpecVersion(String name, TemplateSpecVersionArgs args)
public TemplateSpecVersion(String name, TemplateSpecVersionArgs args, CustomResourceOptions options)
type: azure-native:resources:TemplateSpecVersion
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args TemplateSpecVersionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args TemplateSpecVersionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args TemplateSpecVersionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args TemplateSpecVersionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args TemplateSpecVersionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

TemplateSpecVersion Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The TemplateSpecVersion resource accepts the following input properties:

ResourceGroupName string

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

TemplateSpecName string

Name of the Template Spec.

Description string

Template Spec version description.

LinkedTemplates List<Pulumi.AzureNative.Resources.Inputs.LinkedTemplateArtifactArgs>

An array of linked template artifacts.

Location string

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

MainTemplate object

The main Azure Resource Manager template content.

Metadata object

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

Tags Dictionary<string, string>

Resource tags.

TemplateSpecVersion string

The version of the Template Spec.

UiFormDefinition object

The Azure Resource Manager template UI definition content.

ResourceGroupName string

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

TemplateSpecName string

Name of the Template Spec.

Description string

Template Spec version description.

LinkedTemplates []LinkedTemplateArtifactArgs

An array of linked template artifacts.

Location string

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

MainTemplate interface{}

The main Azure Resource Manager template content.

Metadata interface{}

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

Tags map[string]string

Resource tags.

TemplateSpecVersion string

The version of the Template Spec.

UiFormDefinition interface{}

The Azure Resource Manager template UI definition content.

resourceGroupName String

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

templateSpecName String

Name of the Template Spec.

description String

Template Spec version description.

linkedTemplates List<LinkedTemplateArtifactArgs>

An array of linked template artifacts.

location String

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

mainTemplate Object

The main Azure Resource Manager template content.

metadata Object

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

tags Map<String,String>

Resource tags.

templateSpecVersion String

The version of the Template Spec.

uiFormDefinition Object

The Azure Resource Manager template UI definition content.

resourceGroupName string

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

templateSpecName string

Name of the Template Spec.

description string

Template Spec version description.

linkedTemplates LinkedTemplateArtifactArgs[]

An array of linked template artifacts.

location string

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

mainTemplate any

The main Azure Resource Manager template content.

metadata any

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

tags {[key: string]: string}

Resource tags.

templateSpecVersion string

The version of the Template Spec.

uiFormDefinition any

The Azure Resource Manager template UI definition content.

resource_group_name str

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

template_spec_name str

Name of the Template Spec.

description str

Template Spec version description.

linked_templates Sequence[LinkedTemplateArtifactArgs]

An array of linked template artifacts.

location str

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

main_template Any

The main Azure Resource Manager template content.

metadata Any

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

tags Mapping[str, str]

Resource tags.

template_spec_version str

The version of the Template Spec.

ui_form_definition Any

The Azure Resource Manager template UI definition content.

resourceGroupName String

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

templateSpecName String

Name of the Template Spec.

description String

Template Spec version description.

linkedTemplates List<Property Map>

An array of linked template artifacts.

location String

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

mainTemplate Any

The main Azure Resource Manager template content.

metadata Any

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

tags Map<String>

Resource tags.

templateSpecVersion String

The version of the Template Spec.

uiFormDefinition Any

The Azure Resource Manager template UI definition content.

Outputs

All input properties are implicitly available as output properties. Additionally, the TemplateSpecVersion resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Name string

Name of this resource.

SystemData Pulumi.AzureNative.Resources.Outputs.SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Type string

Type of this resource.

Id string

The provider-assigned unique ID for this managed resource.

Name string

Name of this resource.

SystemData SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Type string

Type of this resource.

id String

The provider-assigned unique ID for this managed resource.

name String

Name of this resource.

systemData SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type String

Type of this resource.

id string

The provider-assigned unique ID for this managed resource.

name string

Name of this resource.

systemData SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type string

Type of this resource.

id str

The provider-assigned unique ID for this managed resource.

name str

Name of this resource.

system_data SystemDataResponse

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type str

Type of this resource.

id String

The provider-assigned unique ID for this managed resource.

name String

Name of this resource.

systemData Property Map

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type String

Type of this resource.

Supporting Types

LinkedTemplateArtifact

Path string

A filesystem safe relative path of the artifact.

Template object

The Azure Resource Manager template.

Path string

A filesystem safe relative path of the artifact.

Template interface{}

The Azure Resource Manager template.

path String

A filesystem safe relative path of the artifact.

template Object

The Azure Resource Manager template.

path string

A filesystem safe relative path of the artifact.

template any

The Azure Resource Manager template.

path str

A filesystem safe relative path of the artifact.

template Any

The Azure Resource Manager template.

path String

A filesystem safe relative path of the artifact.

template Any

The Azure Resource Manager template.

LinkedTemplateArtifactResponse

Path string

A filesystem safe relative path of the artifact.

Template object

The Azure Resource Manager template.

Path string

A filesystem safe relative path of the artifact.

Template interface{}

The Azure Resource Manager template.

path String

A filesystem safe relative path of the artifact.

template Object

The Azure Resource Manager template.

path string

A filesystem safe relative path of the artifact.

template any

The Azure Resource Manager template.

path str

A filesystem safe relative path of the artifact.

template Any

The Azure Resource Manager template.

path String

A filesystem safe relative path of the artifact.

template Any

The Azure Resource Manager template.

SystemDataResponse

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

createdAt string

The timestamp of resource creation (UTC).

createdBy string

The identity that created the resource.

createdByType string

The type of identity that created the resource.

lastModifiedAt string

The timestamp of resource last modification (UTC)

lastModifiedBy string

The identity that last modified the resource.

lastModifiedByType string

The type of identity that last modified the resource.

created_at str

The timestamp of resource creation (UTC).

created_by str

The identity that created the resource.

created_by_type str

The type of identity that created the resource.

last_modified_at str

The timestamp of resource last modification (UTC)

last_modified_by str

The identity that last modified the resource.

last_modified_by_type str

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

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 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0