alicloud.oos.Template
Explore with Pulumi AI
Provides a OOS Template resource. For information about Alicloud OOS Template and how to use it, see What is Resource Alicloud OOS Template.
NOTE: Available in 1.92.0+.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.oos.Template("example", {
content: ` {
"FormatVersion": "OOS-2019-06-01",
"Description": "Update Describe instances of given status",
"Parameters":{
"Status":{
"Type": "String",
"Description": "(Required) The status of the Ecs instance."
}
},
"Tasks": [
{
"Properties" :{
"Parameters":{
"Status": "{{ Status }}"
},
"API": "DescribeInstances",
"Service": "Ecs"
},
"Name": "foo",
"Action": "ACS::ExecuteApi"
}]
}
`,
templateName: "test-name",
versionName: "test",
tags: {
Created: "TF",
For: "acceptance Test",
},
});
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.oos.Template("example",
content=""" {
"FormatVersion": "OOS-2019-06-01",
"Description": "Update Describe instances of given status",
"Parameters":{
"Status":{
"Type": "String",
"Description": "(Required) The status of the Ecs instance."
}
},
"Tasks": [
{
"Properties" :{
"Parameters":{
"Status": "{{ Status }}"
},
"API": "DescribeInstances",
"Service": "Ecs"
},
"Name": "foo",
"Action": "ACS::ExecuteApi"
}]
}
""",
template_name="test-name",
version_name="test",
tags={
"Created": "TF",
"For": "acceptance Test",
})
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/oos"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := oos.NewTemplate(ctx, "example", &oos.TemplateArgs{
Content: pulumi.String(` {
"FormatVersion": "OOS-2019-06-01",
"Description": "Update Describe instances of given status",
"Parameters":{
"Status":{
"Type": "String",
"Description": "(Required) The status of the Ecs instance."
}
},
"Tasks": [
{
"Properties" :{
"Parameters":{
"Status": "{{ Status }}"
},
"API": "DescribeInstances",
"Service": "Ecs"
},
"Name": "foo",
"Action": "ACS::ExecuteApi"
}]
}
`),
TemplateName: pulumi.String("test-name"),
VersionName: pulumi.String("test"),
Tags: pulumi.StringMap{
"Created": pulumi.String("TF"),
"For": pulumi.String("acceptance Test"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.Oos.Template("example", new()
{
Content = @" {
""FormatVersion"": ""OOS-2019-06-01"",
""Description"": ""Update Describe instances of given status"",
""Parameters"":{
""Status"":{
""Type"": ""String"",
""Description"": ""(Required) The status of the Ecs instance.""
}
},
""Tasks"": [
{
""Properties"" :{
""Parameters"":{
""Status"": ""{{ Status }}""
},
""API"": ""DescribeInstances"",
""Service"": ""Ecs""
},
""Name"": ""foo"",
""Action"": ""ACS::ExecuteApi""
}]
}
",
TemplateName = "test-name",
VersionName = "test",
Tags =
{
{ "Created", "TF" },
{ "For", "acceptance Test" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.oos.Template;
import com.pulumi.alicloud.oos.TemplateArgs;
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 example = new Template("example", TemplateArgs.builder()
.content("""
{
"FormatVersion": "OOS-2019-06-01",
"Description": "Update Describe instances of given status",
"Parameters":{
"Status":{
"Type": "String",
"Description": "(Required) The status of the Ecs instance."
}
},
"Tasks": [
{
"Properties" :{
"Parameters":{
"Status": "{{ Status }}"
},
"API": "DescribeInstances",
"Service": "Ecs"
},
"Name": "foo",
"Action": "ACS::ExecuteApi"
}]
}
""")
.templateName("test-name")
.versionName("test")
.tags(Map.ofEntries(
Map.entry("Created", "TF"),
Map.entry("For", "acceptance Test")
))
.build());
}
}
resources:
example:
type: alicloud:oos:Template
properties:
content: |2
{
"FormatVersion": "OOS-2019-06-01",
"Description": "Update Describe instances of given status",
"Parameters":{
"Status":{
"Type": "String",
"Description": "(Required) The status of the Ecs instance."
}
},
"Tasks": [
{
"Properties" :{
"Parameters":{
"Status": "{{ Status }}"
},
"API": "DescribeInstances",
"Service": "Ecs"
},
"Name": "foo",
"Action": "ACS::ExecuteApi"
}]
}
templateName: test-name
versionName: test
tags:
Created: TF
For: acceptance Test
Create Template Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Template(name: string, args: TemplateArgs, opts?: CustomResourceOptions);
@overload
def Template(resource_name: str,
args: TemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Template(resource_name: str,
opts: Optional[ResourceOptions] = None,
content: Optional[str] = None,
template_name: Optional[str] = None,
auto_delete_executions: Optional[bool] = None,
resource_group_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
version_name: Optional[str] = None)
func NewTemplate(ctx *Context, name string, args TemplateArgs, opts ...ResourceOption) (*Template, error)
public Template(string name, TemplateArgs args, CustomResourceOptions? opts = null)
public Template(String name, TemplateArgs args)
public Template(String name, TemplateArgs args, CustomResourceOptions options)
type: alicloud:oos:Template
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 TemplateArgs
- 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 TemplateArgs
- 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 TemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TemplateArgs
- 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 templateResource = new AliCloud.Oos.Template("templateResource", new()
{
Content = "string",
TemplateName = "string",
AutoDeleteExecutions = false,
ResourceGroupId = "string",
Tags =
{
{ "string", "string" },
},
VersionName = "string",
});
example, err := oos.NewTemplate(ctx, "templateResource", &oos.TemplateArgs{
Content: pulumi.String("string"),
TemplateName: pulumi.String("string"),
AutoDeleteExecutions: pulumi.Bool(false),
ResourceGroupId: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
VersionName: pulumi.String("string"),
})
var templateResource = new Template("templateResource", TemplateArgs.builder()
.content("string")
.templateName("string")
.autoDeleteExecutions(false)
.resourceGroupId("string")
.tags(Map.of("string", "string"))
.versionName("string")
.build());
template_resource = alicloud.oos.Template("templateResource",
content="string",
template_name="string",
auto_delete_executions=False,
resource_group_id="string",
tags={
"string": "string",
},
version_name="string")
const templateResource = new alicloud.oos.Template("templateResource", {
content: "string",
templateName: "string",
autoDeleteExecutions: false,
resourceGroupId: "string",
tags: {
string: "string",
},
versionName: "string",
});
type: alicloud:oos:Template
properties:
autoDeleteExecutions: false
content: string
resourceGroupId: string
tags:
string: string
templateName: string
versionName: string
Template 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 Template resource accepts the following input properties:
- Content string
- The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
- Template
Name string - The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with
ALIYUN
,ACS
,ALIBABA
, orALICLOUD
. - Auto
Delete boolExecutions - When deleting a template, whether to delete its related executions. Default to
false
. - Resource
Group stringId - The ID of resource group which the template belongs.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Version
Name string - The name of template version.
- Content string
- The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
- Template
Name string - The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with
ALIYUN
,ACS
,ALIBABA
, orALICLOUD
. - Auto
Delete boolExecutions - When deleting a template, whether to delete its related executions. Default to
false
. - Resource
Group stringId - The ID of resource group which the template belongs.
- map[string]string
- A mapping of tags to assign to the resource.
- Version
Name string - The name of template version.
- content String
- The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
- template
Name String - The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with
ALIYUN
,ACS
,ALIBABA
, orALICLOUD
. - auto
Delete BooleanExecutions - When deleting a template, whether to delete its related executions. Default to
false
. - resource
Group StringId - The ID of resource group which the template belongs.
- Map<String,String>
- A mapping of tags to assign to the resource.
- version
Name String - The name of template version.
- content string
- The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
- template
Name string - The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with
ALIYUN
,ACS
,ALIBABA
, orALICLOUD
. - auto
Delete booleanExecutions - When deleting a template, whether to delete its related executions. Default to
false
. - resource
Group stringId - The ID of resource group which the template belongs.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- version
Name string - The name of template version.
- content str
- The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
- template_
name str - The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with
ALIYUN
,ACS
,ALIBABA
, orALICLOUD
. - auto_
delete_ boolexecutions - When deleting a template, whether to delete its related executions. Default to
false
. - resource_
group_ strid - The ID of resource group which the template belongs.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- version_
name str - The name of template version.
- content String
- The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
- template
Name String - The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with
ALIYUN
,ACS
,ALIBABA
, orALICLOUD
. - auto
Delete BooleanExecutions - When deleting a template, whether to delete its related executions. Default to
false
. - resource
Group StringId - The ID of resource group which the template belongs.
- Map<String>
- A mapping of tags to assign to the resource.
- version
Name String - The name of template version.
Outputs
All input properties are implicitly available as output properties. Additionally, the Template resource produces the following output properties:
- Created
By string - The creator of the template.
- Created
Date string - The time when the template is created.
- Description string
- The description of the template.
- Has
Trigger bool - Is it triggered successfully.
- Id string
- The provider-assigned unique ID for this managed resource.
- string
- The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
- Template
Format string - The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
- Template
Id string - The id of OOS Template.
- Template
Type string - The type of OOS Template.
Automation
means the implementation of Alibaba Cloud API template,Package
means represents a template for installing software. - Template
Version string - The version of OOS Template.
- Updated
By string - The user who updated the template.
- Updated
Date string - The time when the template was updated.
- Created
By string - The creator of the template.
- Created
Date string - The time when the template is created.
- Description string
- The description of the template.
- Has
Trigger bool - Is it triggered successfully.
- Id string
- The provider-assigned unique ID for this managed resource.
- string
- The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
- Template
Format string - The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
- Template
Id string - The id of OOS Template.
- Template
Type string - The type of OOS Template.
Automation
means the implementation of Alibaba Cloud API template,Package
means represents a template for installing software. - Template
Version string - The version of OOS Template.
- Updated
By string - The user who updated the template.
- Updated
Date string - The time when the template was updated.
- created
By String - The creator of the template.
- created
Date String - The time when the template is created.
- description String
- The description of the template.
- has
Trigger Boolean - Is it triggered successfully.
- id String
- The provider-assigned unique ID for this managed resource.
- String
- The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
- template
Format String - The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
- template
Id String - The id of OOS Template.
- template
Type String - The type of OOS Template.
Automation
means the implementation of Alibaba Cloud API template,Package
means represents a template for installing software. - template
Version String - The version of OOS Template.
- updated
By String - The user who updated the template.
- updated
Date String - The time when the template was updated.
- created
By string - The creator of the template.
- created
Date string - The time when the template is created.
- description string
- The description of the template.
- has
Trigger boolean - Is it triggered successfully.
- id string
- The provider-assigned unique ID for this managed resource.
- string
- The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
- template
Format string - The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
- template
Id string - The id of OOS Template.
- template
Type string - The type of OOS Template.
Automation
means the implementation of Alibaba Cloud API template,Package
means represents a template for installing software. - template
Version string - The version of OOS Template.
- updated
By string - The user who updated the template.
- updated
Date string - The time when the template was updated.
- created_
by str - The creator of the template.
- created_
date str - The time when the template is created.
- description str
- The description of the template.
- has_
trigger bool - Is it triggered successfully.
- id str
- The provider-assigned unique ID for this managed resource.
- str
- The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
- template_
format str - The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
- template_
id str - The id of OOS Template.
- template_
type str - The type of OOS Template.
Automation
means the implementation of Alibaba Cloud API template,Package
means represents a template for installing software. - template_
version str - The version of OOS Template.
- updated_
by str - The user who updated the template.
- updated_
date str - The time when the template was updated.
- created
By String - The creator of the template.
- created
Date String - The time when the template is created.
- description String
- The description of the template.
- has
Trigger Boolean - Is it triggered successfully.
- id String
- The provider-assigned unique ID for this managed resource.
- String
- The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
- template
Format String - The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
- template
Id String - The id of OOS Template.
- template
Type String - The type of OOS Template.
Automation
means the implementation of Alibaba Cloud API template,Package
means represents a template for installing software. - template
Version String - The version of OOS Template.
- updated
By String - The user who updated the template.
- updated
Date String - The time when the template was updated.
Look up Existing Template Resource
Get an existing Template resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TemplateState, opts?: CustomResourceOptions): Template
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_delete_executions: Optional[bool] = None,
content: Optional[str] = None,
created_by: Optional[str] = None,
created_date: Optional[str] = None,
description: Optional[str] = None,
has_trigger: Optional[bool] = None,
resource_group_id: Optional[str] = None,
share_type: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
template_format: Optional[str] = None,
template_id: Optional[str] = None,
template_name: Optional[str] = None,
template_type: Optional[str] = None,
template_version: Optional[str] = None,
updated_by: Optional[str] = None,
updated_date: Optional[str] = None,
version_name: Optional[str] = None) -> Template
func GetTemplate(ctx *Context, name string, id IDInput, state *TemplateState, opts ...ResourceOption) (*Template, error)
public static Template Get(string name, Input<string> id, TemplateState? state, CustomResourceOptions? opts = null)
public static Template get(String name, Output<String> id, TemplateState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Auto
Delete boolExecutions - When deleting a template, whether to delete its related executions. Default to
false
. - Content string
- The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
- Created
By string - The creator of the template.
- Created
Date string - The time when the template is created.
- Description string
- The description of the template.
- Has
Trigger bool - Is it triggered successfully.
- Resource
Group stringId - The ID of resource group which the template belongs.
- string
- The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Template
Format string - The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
- Template
Id string - The id of OOS Template.
- Template
Name string - The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with
ALIYUN
,ACS
,ALIBABA
, orALICLOUD
. - Template
Type string - The type of OOS Template.
Automation
means the implementation of Alibaba Cloud API template,Package
means represents a template for installing software. - Template
Version string - The version of OOS Template.
- Updated
By string - The user who updated the template.
- Updated
Date string - The time when the template was updated.
- Version
Name string - The name of template version.
- Auto
Delete boolExecutions - When deleting a template, whether to delete its related executions. Default to
false
. - Content string
- The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
- Created
By string - The creator of the template.
- Created
Date string - The time when the template is created.
- Description string
- The description of the template.
- Has
Trigger bool - Is it triggered successfully.
- Resource
Group stringId - The ID of resource group which the template belongs.
- string
- The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
- map[string]string
- A mapping of tags to assign to the resource.
- Template
Format string - The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
- Template
Id string - The id of OOS Template.
- Template
Name string - The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with
ALIYUN
,ACS
,ALIBABA
, orALICLOUD
. - Template
Type string - The type of OOS Template.
Automation
means the implementation of Alibaba Cloud API template,Package
means represents a template for installing software. - Template
Version string - The version of OOS Template.
- Updated
By string - The user who updated the template.
- Updated
Date string - The time when the template was updated.
- Version
Name string - The name of template version.
- auto
Delete BooleanExecutions - When deleting a template, whether to delete its related executions. Default to
false
. - content String
- The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
- created
By String - The creator of the template.
- created
Date String - The time when the template is created.
- description String
- The description of the template.
- has
Trigger Boolean - Is it triggered successfully.
- resource
Group StringId - The ID of resource group which the template belongs.
- String
- The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
- Map<String,String>
- A mapping of tags to assign to the resource.
- template
Format String - The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
- template
Id String - The id of OOS Template.
- template
Name String - The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with
ALIYUN
,ACS
,ALIBABA
, orALICLOUD
. - template
Type String - The type of OOS Template.
Automation
means the implementation of Alibaba Cloud API template,Package
means represents a template for installing software. - template
Version String - The version of OOS Template.
- updated
By String - The user who updated the template.
- updated
Date String - The time when the template was updated.
- version
Name String - The name of template version.
- auto
Delete booleanExecutions - When deleting a template, whether to delete its related executions. Default to
false
. - content string
- The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
- created
By string - The creator of the template.
- created
Date string - The time when the template is created.
- description string
- The description of the template.
- has
Trigger boolean - Is it triggered successfully.
- resource
Group stringId - The ID of resource group which the template belongs.
- string
- The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- template
Format string - The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
- template
Id string - The id of OOS Template.
- template
Name string - The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with
ALIYUN
,ACS
,ALIBABA
, orALICLOUD
. - template
Type string - The type of OOS Template.
Automation
means the implementation of Alibaba Cloud API template,Package
means represents a template for installing software. - template
Version string - The version of OOS Template.
- updated
By string - The user who updated the template.
- updated
Date string - The time when the template was updated.
- version
Name string - The name of template version.
- auto_
delete_ boolexecutions - When deleting a template, whether to delete its related executions. Default to
false
. - content str
- The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
- created_
by str - The creator of the template.
- created_
date str - The time when the template is created.
- description str
- The description of the template.
- has_
trigger bool - Is it triggered successfully.
- resource_
group_ strid - The ID of resource group which the template belongs.
- str
- The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- template_
format str - The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
- template_
id str - The id of OOS Template.
- template_
name str - The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with
ALIYUN
,ACS
,ALIBABA
, orALICLOUD
. - template_
type str - The type of OOS Template.
Automation
means the implementation of Alibaba Cloud API template,Package
means represents a template for installing software. - template_
version str - The version of OOS Template.
- updated_
by str - The user who updated the template.
- updated_
date str - The time when the template was updated.
- version_
name str - The name of template version.
- auto
Delete BooleanExecutions - When deleting a template, whether to delete its related executions. Default to
false
. - content String
- The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
- created
By String - The creator of the template.
- created
Date String - The time when the template is created.
- description String
- The description of the template.
- has
Trigger Boolean - Is it triggered successfully.
- resource
Group StringId - The ID of resource group which the template belongs.
- String
- The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
- Map<String>
- A mapping of tags to assign to the resource.
- template
Format String - The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
- template
Id String - The id of OOS Template.
- template
Name String - The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with
ALIYUN
,ACS
,ALIBABA
, orALICLOUD
. - template
Type String - The type of OOS Template.
Automation
means the implementation of Alibaba Cloud API template,Package
means represents a template for installing software. - template
Version String - The version of OOS Template.
- updated
By String - The user who updated the template.
- updated
Date String - The time when the template was updated.
- version
Name String - The name of template version.
Import
OOS Template can be imported using the id or template_name, e.g.
$ pulumi import alicloud:oos/template:Template example template_name
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.