Template Args
Provides a ROS Template resource. For information about ROS Template and how to use it, see What is Template.
NOTE: Available in v1.108.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.ros.Template("example", {
templateName: "example_value",
templateBody: ` {
\x09"ROSTemplateFormatVersion": "2015-09-01"
}
`,
});
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.ros.Template("example",
template_name="example_value",
template_body=""" {
\x09"ROSTemplateFormatVersion": "2015-09-01"
}
""")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.Ros.Template("example", new()
{
TemplateName = "example_value",
TemplateBody = @" {
""ROSTemplateFormatVersion"": ""2015-09-01""
}
",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ros"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ros.NewTemplate(ctx, "example", &ros.TemplateArgs{
TemplateName: pulumi.String("example_value"),
TemplateBody: pulumi.String(" {\n \"ROSTemplateFormatVersion\": \"2015-09-01\"\n }\n"),
})
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.alicloud.ros.Template;
import com.pulumi.alicloud.ros.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()
.templateName("example_value")
.templateBody("""
{
"ROSTemplateFormatVersion": "2015-09-01"
}
""")
.build());
}
}
resources:
example:
type: alicloud:ros:Template
properties:
templateName: example_value
templateBody: |2
{
"ROSTemplateFormatVersion": "2015-09-01"
}
Import
ROS Template can be imported using the id, e.g.
$ pulumi import alicloud:ros/template:Template example <template_id>
Constructors
Properties
The description of the template. The description can be up to 256 characters in length.
The structure that contains the template body. The template body must be 1 to 524,288 bytes in length. If the length of the template body is longer than required, we recommend that you add parameters to the HTTP POST request body to avoid request failures due to excessive length of URLs. You must specify one of the TemplateBody and TemplateURL parameters, but you cannot specify both of them.
The name of the template. The name can be up to 255 characters in length and can contain digits, letters, hyphens (-), and underscores (_). It must start with a digit or letter.
The template url.