Azure Native

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

TemplateSpec

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

Example Usage

TemplateSpecsCreateUpdate

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var templateSpec = new AzureNative.Resources.TemplateSpec("templateSpec", new AzureNative.Resources.TemplateSpecArgs
        {
            Description = "A very simple Template Spec",
            Location = "eastus",
            ResourceGroupName = "templateSpecRG",
            TemplateSpecName = "simpleTemplateSpec",
        });
    }

}
package main

import (
	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.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 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 templateSpec = new TemplateSpec("templateSpec", TemplateSpecArgs.builder()        
            .description("A very simple Template Spec")
            .location("eastus")
            .resourceGroupName("templateSpecRG")
            .templateSpecName("simpleTemplateSpec")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

template_spec = azure_native.resources.TemplateSpec("templateSpec",
    description="A very simple Template Spec",
    location="eastus",
    resource_group_name="templateSpecRG",
    template_spec_name="simpleTemplateSpec")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const templateSpec = new azure_native.resources.TemplateSpec("templateSpec", {
    description: "A very simple Template Spec",
    location: "eastus",
    resourceGroupName: "templateSpecRG",
    templateSpecName: "simpleTemplateSpec",
});
resources:
  templateSpec:
    type: azure-native:resources:TemplateSpec
    properties:
      description: A very simple Template Spec
      location: eastus
      resourceGroupName: templateSpecRG
      templateSpecName: simpleTemplateSpec

Create a TemplateSpec Resource

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

name string
The unique name of the resource.
args TemplateSpecArgs
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 TemplateSpecArgs
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 TemplateSpecArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args TemplateSpecArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args TemplateSpecArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

TemplateSpec 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 TemplateSpec resource accepts the following input properties:

ResourceGroupName string

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

Description string

Template Spec description.

DisplayName string

Template Spec display name.

Location string

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

Metadata object

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

Tags Dictionary<string, string>

Resource tags.

TemplateSpecName string

Name of the Template Spec.

ResourceGroupName string

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

Description string

Template Spec description.

DisplayName string

Template Spec display name.

Location string

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

Metadata interface{}

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

Tags map[string]string

Resource tags.

TemplateSpecName string

Name of the Template Spec.

resourceGroupName String

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

description String

Template Spec description.

displayName String

Template Spec display name.

location String

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

metadata Object

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

tags Map<String,String>

Resource tags.

templateSpecName String

Name of the Template Spec.

resourceGroupName string

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

description string

Template Spec description.

displayName string

Template Spec display name.

location string

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

metadata any

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

tags {[key: string]: string}

Resource tags.

templateSpecName string

Name of the Template Spec.

resource_group_name str

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

description str

Template Spec description.

display_name str

Template Spec display name.

location str

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

metadata Any

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

tags Mapping[str, str]

Resource tags.

template_spec_name str

Name of the Template Spec.

resourceGroupName String

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

description String

Template Spec description.

displayName String

Template Spec display name.

location String

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

metadata Any

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

tags Map<String>

Resource tags.

templateSpecName String

Name of the Template Spec.

Outputs

All input properties are implicitly available as output properties. Additionally, the TemplateSpec 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.

Versions Dictionary<string, Pulumi.AzureNative.Resources.Outputs.TemplateSpecVersionInfoResponse>

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'.

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.

Versions map[string]TemplateSpecVersionInfoResponse

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'.

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.

versions Map<String,TemplateSpecVersionInfoResponse>

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'.

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.

versions {[key: string]: TemplateSpecVersionInfoResponse}

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'.

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.

versions Mapping[str, TemplateSpecVersionInfoResponse]

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'.

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.

versions Map<Property Map>

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'.

Supporting Types

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.

TemplateSpecVersionInfoResponse

Description string

Template Spec version description.

TimeCreated string

The timestamp of when the version was created.

TimeModified string

The timestamp of when the version was last modified.

Description string

Template Spec version description.

TimeCreated string

The timestamp of when the version was created.

TimeModified string

The timestamp of when the version was last modified.

description String

Template Spec version description.

timeCreated String

The timestamp of when the version was created.

timeModified String

The timestamp of when the version was last modified.

description string

Template Spec version description.

timeCreated string

The timestamp of when the version was created.

timeModified string

The timestamp of when the version was last modified.

description str

Template Spec version description.

time_created str

The timestamp of when the version was created.

time_modified str

The timestamp of when the version was last modified.

description String

Template Spec version description.

timeCreated String

The timestamp of when the version was created.

timeModified String

The timestamp of when the version was last modified.

Import

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

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

Package Details

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