Skip to content

TemplateProps

Properties for defining a Template.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-oos-template

Initializer

import ros_cdk_oos
ros_cdk_oos.TemplateProps(
  content: typing.Union[str, IResolvable],
  template_name: typing.Union[str, IResolvable],
  resource_group_id: typing.Union[str, IResolvable] = None,
  tags: typing.Mapping[typing.Any] = None
)

Properties

Name Type Description
content typing.Union[str, ros_cdk_core.IResolvable] Property content: The content of the template.
template_name typing.Union[str, ros_cdk_core.IResolvable] Property templateName: The name of the template.
resource_group_id typing.Union[str, ros_cdk_core.IResolvable] Property resourceGroupId: Resource group id.
tags typing.Mapping[typing.Any] Property tags: Tag value and the key mapping, the label of the key number can be up to 20.

contentRequired

content: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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.


template_nameRequired

template_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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 ALIYUN, ACS, ALIBABA, or ALICLOUD.


resource_group_idOptional

resource_group_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property resourceGroupId: Resource group id.


tagsOptional

tags: typing.Mapping[typing.Any]
  • Type: typing.Mapping[typing.Any]

Property tags: Tag value and the key mapping, the label of the key number can be up to 20.