azure-native.resources.TemplateSpec
Explore with Pulumi AI
Template Spec object. API Version: 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"
"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 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 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: "string",
Description: "string",
DisplayName: "string",
Location: "string",
Metadata: "any",
Tags: map[string]interface{}{
"string": "string",
},
TemplateSpecName: "string",
})
var templateSpecResource = new TemplateSpec("templateSpecResource", TemplateSpecArgs.builder()
.resourceGroupName("string")
.description("string")
.displayName("string")
.location("string")
.metadata("any")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.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:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Description string
- Template Spec description.
- Display
Name 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.
- Template
Spec stringName - Name of the Template Spec.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Description string
- Template Spec description.
- Display
Name 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.
- Template
Spec stringName - Name of the Template Spec.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- description String
- Template Spec description.
- display
Name 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.
- template
Spec StringName - Name of the Template Spec.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- description string
- Template Spec description.
- display
Name 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.
- template
Spec 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.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- description String
- Template Spec description.
- display
Name 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.
- template
Spec 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.
- 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.
- 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.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- Type of this resource.
- Versions
map[string]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.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- Type of this resource.
- versions
Map<String,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.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- Type of this resource.
- versions
{[key: string]: 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 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, 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.
- system
Data 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
- 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.
TemplateSpecVersionInfoResponse, TemplateSpecVersionInfoResponseArgs
- Description string
- Template Spec version description.
- Time
Created string - The timestamp of when the version was created.
- Time
Modified string - The timestamp of when the version was last modified.
- Description string
- Template Spec version description.
- Time
Created string - The timestamp of when the version was created.
- Time
Modified string - The timestamp of when the version was last modified.
- description String
- Template Spec version description.
- time
Created String - The timestamp of when the version was created.
- time
Modified String - The timestamp of when the version was last modified.
- description string
- Template Spec version description.
- time
Created string - The timestamp of when the version was created.
- time
Modified 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.
- time
Created String - The timestamp of when the version was created.
- time
Modified 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0