azure-native.resources.TemplateSpecVersion
Explore with Pulumi AI
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 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 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:
- Resource
Group stringName The name of the resource group. The name is case insensitive.
- Template
Spec stringName Name of the Template Spec.
- Description string
Template Spec version description.
- Linked
Templates List<Pulumi.Azure Native. Resources. Inputs. Linked Template Artifact Args> 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.
- Main
Template 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.
- Dictionary<string, string>
Resource tags.
- Template
Spec stringVersion The version of the Template Spec.
- Ui
Form objectDefinition The Azure Resource Manager template UI definition content.
- Resource
Group stringName The name of the resource group. The name is case insensitive.
- Template
Spec stringName Name of the Template Spec.
- Description string
Template Spec version description.
- Linked
Templates []LinkedTemplate Artifact Args 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.
- Main
Template 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.
- map[string]string
Resource tags.
- Template
Spec stringVersion The version of the Template Spec.
- Ui
Form interface{}Definition The Azure Resource Manager template UI definition content.
- resource
Group StringName The name of the resource group. The name is case insensitive.
- template
Spec StringName Name of the Template Spec.
- description String
Template Spec version description.
- linked
Templates List<LinkedTemplate Artifact Args> 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.
- main
Template 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.
- Map<String,String>
Resource tags.
- template
Spec StringVersion The version of the Template Spec.
- ui
Form ObjectDefinition The Azure Resource Manager template UI definition content.
- resource
Group stringName The name of the resource group. The name is case insensitive.
- template
Spec stringName Name of the Template Spec.
- description string
Template Spec version description.
- linked
Templates LinkedTemplate Artifact Args[] 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.
- 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.
- {[key: string]: string}
Resource tags.
- template
Spec stringVersion The version of the Template Spec.
- ui
Form anyDefinition The Azure Resource Manager template UI definition content.
- resource_
group_ strname The name of the resource group. The name is case insensitive.
- template_
spec_ strname Name of the Template Spec.
- description str
Template Spec version description.
- linked_
templates Sequence[LinkedTemplate Artifact Args] 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.
- Mapping[str, str]
Resource tags.
- template_
spec_ strversion The version of the Template Spec.
- ui_
form_ Anydefinition The Azure Resource Manager template UI definition content.
- resource
Group StringName The name of the resource group. The name is case insensitive.
- template
Spec StringName Name of the Template Spec.
- description String
Template Spec version description.
- linked
Templates 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.
- 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.
- Map<String>
Resource tags.
- template
Spec StringVersion The version of the Template Spec.
- ui
Form AnyDefinition 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.
- System
Data Pulumi.Azure Native. Resources. Outputs. System Data Response 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.
- System
Data SystemData Response 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.
- system
Data SystemData Response 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.
- system
Data SystemData Response 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 SystemData Response 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.
- system
Data Property Map Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
Type of this resource.
Supporting Types
LinkedTemplateArtifact
LinkedTemplateArtifactResponse
SystemDataResponse
- Created
At string The timestamp of resource creation (UTC).
- Created
By string The identity that created the resource.
- Created
By stringType The type of identity that created the resource.
- Last
Modified stringAt The timestamp of resource last modification (UTC)
- Last
Modified stringBy The identity that last modified the resource.
- Last
Modified stringBy Type The type of identity that last modified the resource.
- Created
At string The timestamp of resource creation (UTC).
- Created
By string The identity that created the resource.
- Created
By stringType The type of identity that created the resource.
- Last
Modified stringAt The timestamp of resource last modification (UTC)
- Last
Modified stringBy The identity that last modified the resource.
- Last
Modified stringBy Type The type of identity that last modified the resource.
- created
At String The timestamp of resource creation (UTC).
- created
By String The identity that created the resource.
- created
By StringType The type of identity that created the resource.
- last
Modified StringAt The timestamp of resource last modification (UTC)
- last
Modified StringBy The identity that last modified the resource.
- last
Modified StringBy Type The type of identity that last modified the resource.
- created
At string The timestamp of resource creation (UTC).
- created
By string The identity that created the resource.
- created
By stringType The type of identity that created the resource.
- last
Modified stringAt The timestamp of resource last modification (UTC)
- last
Modified stringBy The identity that last modified the resource.
- last
Modified 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.
- created
At String The timestamp of resource creation (UTC).
- created
By String The identity that created the resource.
- created
By StringType The type of identity that created the resource.
- last
Modified StringAt The timestamp of resource last modification (UTC)
- last
Modified StringBy The identity that last modified the resource.
- last
Modified StringBy Type 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
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0