Template Args
data class TemplateArgs(val description: Output<String>? = null, val tags: Output<Map<String, Any>>? = null, val templateBody: Output<String>? = null, val templateName: Output<String>? = null, val templateUrl: Output<String>? = null) : ConvertibleToJava<TemplateArgs>
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
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()
.templateBody("""
{
"ROSTemplateFormatVersion": "2015-09-01"
}
""")
.templateName("example_value")
.build());
}
}
Content copied to clipboard
Import
ROS Template can be imported using the id, e.g.
$ pulumi import alicloud:ros/template:Template example <template_id>
Content copied to clipboard
Constructors
Functions
Properties
Link copied to clipboard
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.
Link copied to clipboard