TemplateProps
Properties for defining a Template.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-oos-template
Initializer
import com.aliyun.ros.cdk.oos.TemplateProps;
TemplateProps.builder()
.content(java.lang.String)
.content(IResolvable)
.templateName(java.lang.String)
.templateName(IResolvable)
// .ignoreExisting(java.lang.Boolean)
// .ignoreExisting(IResolvable)
// .resourceGroupId(java.lang.String)
// .resourceGroupId(IResolvable)
// .tags(java.util.Map<java.lang.String, java.lang.Object>)
.build();
Properties
| Name | Type | Description |
|---|---|---|
content | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property content: The content of the template. |
templateName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property templateName: The name of the template. |
ignoreExisting | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property ignoreExisting: Whether to ignore existing template False: ROS will perform a uniqueness check.If a template with the same name exists, an error will be reported when creating it. True: ROS will not check the uniqueness.If there is a template with the same name, the template creation process will be ignored. If the template is not created by ROS, it will be ignored during update and delete stage. |
resourceGroupId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property resourceGroupId: Resource group id. |
tags | java.util.Map | Property tags: Tag value and the key mapping, the label of the key number can be up to 20. |
contentRequired
public java.lang.Object getContent();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property content: The content of the template.
The template must be in the JSON or YAML format. Maximum size: 64 KB.
templateNameRequired
public java.lang.Object getTemplateName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property templateName: 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 ACS, ALIYUN, ALIBABA, or ALICLOUD.
ignoreExistingOptional
public java.lang.Object getIgnoreExisting();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property ignoreExisting: Whether to ignore existing template False: ROS will perform a uniqueness check.If a template with the same name exists, an error will be reported when creating it. True: ROS will not check the uniqueness.If there is a template with the same name, the template creation process will be ignored. If the template is not created by ROS, it will be ignored during update and delete stage.
resourceGroupIdOptional
public java.lang.Object getResourceGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceGroupId: Resource group id.
tagsOptional
public java.util.Map<java.lang.String, java.lang.Object> getTags();
- Type: java.util.Map
Property tags: Tag value and the key mapping, the label of the key number can be up to 20.