azure-native.resources.TemplateSpec
Explore with Pulumi AI
Template Spec object. Azure REST API version: 2022-02-01. Prior API version in Azure Native 1.x: 2022-02-01.
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 * 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",
});
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")
resources:
  templateSpec:
    type: azure-native:resources:TemplateSpec
    properties:
      description: A very simple Template Spec
      location: eastus
      resourceGroupName: templateSpecRG
      templateSpecName: simpleTemplateSpec
Create TemplateSpec Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TemplateSpec(name: string, args: TemplateSpecArgs, opts?: CustomResourceOptions);@overload
def TemplateSpec(resource_name: str,
                 args: TemplateSpecArgs,
                 opts: Optional[ResourceOptions] = None)
@overload
def TemplateSpec(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 resource_group_name: Optional[str] = None,
                 description: Optional[str] = None,
                 display_name: Optional[str] = None,
                 location: Optional[str] = None,
                 metadata: Optional[Any] = None,
                 tags: Optional[Mapping[str, str]] = None,
                 template_spec_name: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var templateSpecResource = new AzureNative.Resources.TemplateSpec("templateSpecResource", new()
{
    ResourceGroupName = "string",
    Description = "string",
    DisplayName = "string",
    Location = "string",
    Metadata = "any",
    Tags = 
    {
        { "string", "string" },
    },
    TemplateSpecName = "string",
});
example, err := resources.NewTemplateSpec(ctx, "templateSpecResource", &resources.TemplateSpecArgs{
	ResourceGroupName: pulumi.String("string"),
	Description:       pulumi.String("string"),
	DisplayName:       pulumi.String("string"),
	Location:          pulumi.String("string"),
	Metadata:          pulumi.Any("any"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	TemplateSpecName: pulumi.String("string"),
})
var templateSpecResource = new TemplateSpec("templateSpecResource", TemplateSpecArgs.builder()
    .resourceGroupName("string")
    .description("string")
    .displayName("string")
    .location("string")
    .metadata("any")
    .tags(Map.of("string", "string"))
    .templateSpecName("string")
    .build());
template_spec_resource = azure_native.resources.TemplateSpec("templateSpecResource",
    resource_group_name="string",
    description="string",
    display_name="string",
    location="string",
    metadata="any",
    tags={
        "string": "string",
    },
    template_spec_name="string")
const templateSpecResource = new azure_native.resources.TemplateSpec("templateSpecResource", {
    resourceGroupName: "string",
    description: "string",
    displayName: "string",
    location: "string",
    metadata: "any",
    tags: {
        string: "string",
    },
    templateSpecName: "string",
});
type: azure-native:resources:TemplateSpec
properties:
    description: string
    displayName: string
    location: string
    metadata: any
    resourceGroupName: string
    tags:
        string: string
    templateSpecName: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The TemplateSpec resource accepts the following input properties:
- ResourceGroup stringName 
- 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.
- Dictionary<string, string>
- Resource tags.
- TemplateSpec stringName 
- Name of the Template Spec.
- ResourceGroup stringName 
- 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.
- map[string]string
- Resource tags.
- TemplateSpec stringName 
- Name of the Template Spec.
- resourceGroup StringName 
- 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.
- Map<String,String>
- Resource tags.
- templateSpec StringName 
- Name of the Template Spec.
- resourceGroup stringName 
- 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.
- {[key: string]: string}
- Resource tags.
- templateSpec stringName 
- Name of the Template Spec.
- resource_group_ strname 
- 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.
- Mapping[str, str]
- Resource tags.
- template_spec_ strname 
- Name of the Template Spec.
- resourceGroup StringName 
- 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.
- Map<String>
- Resource tags.
- templateSpec StringName 
- 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.Azure Native. Resources. Outputs. System Data Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- Type of this resource.
- Versions
Dictionary<string, Pulumi.Azure Native. Resources. Outputs. Template Spec Version Info Response> 
- 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 SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- Type of this resource.
- Versions
map[string]TemplateSpec Version Info Response 
- 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 SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- Type of this resource.
- versions
Map<String,TemplateSpec Version Info Response> 
- 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 SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- Type of this resource.
- versions
{[key: string]: TemplateSpec Version Info Response} 
- 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 SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- Type of this resource.
- versions
Mapping[str, TemplateSpec Version Info Response] 
- 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, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- 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_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
TemplateSpecVersionInfoResponse, TemplateSpecVersionInfoResponseArgs          
- 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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0