Skip to content

TemplatesProps

Properties for defining a Templates.

See https://www.alibabacloud.com/help/ros/developer-reference/datasource-oos-templates

Initializer

from ros_cdk_oos import datasource
datasource.TemplatesProps(
  category: typing.Union[str, IResolvable] = None,
  created_by: typing.Union[str, IResolvable] = None,
  created_date_after: typing.Union[str, IResolvable] = None,
  created_date_before: typing.Union[str, IResolvable] = None,
  has_trigger: typing.Union[bool, IResolvable] = None,
  is_example: typing.Union[bool, IResolvable] = None,
  is_favorite: typing.Union[bool, IResolvable] = None,
  refresh_options: typing.Union[str, IResolvable] = None,
  resource_group_id: typing.Union[str, IResolvable] = None,
  share_type: typing.Union[str, IResolvable] = None,
  sort_field: typing.Union[str, IResolvable] = None,
  sort_order: typing.Union[str, IResolvable] = None,
  tags: typing.Mapping[typing.Any] = None,
  template_format: typing.Union[str, IResolvable] = None,
  template_name: typing.Union[str, IResolvable] = None,
  template_type: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
category typing.Union[str, ros_cdk_core.IResolvable] Property category: The type of the template.
created_by typing.Union[str, ros_cdk_core.IResolvable] Property createdBy: The creator of the template.
created_date_after typing.Union[str, ros_cdk_core.IResolvable] Property createdDateAfter: Specifies to query the template that is created at or later than the specified time.The value must be in the YYYY-MM-DDThh:mm:ssZ format.
created_date_before typing.Union[str, ros_cdk_core.IResolvable] Property createdDateBefore: Specifies to query the template that is created at or before the specified time.The value must be in the YYYY-MM-DDThh:mm::ssZ format.
has_trigger typing.Union[bool, ros_cdk_core.IResolvable] Property hasTrigger: Specifies whether to query the template that is configured with a trigger.
is_example typing.Union[bool, ros_cdk_core.IResolvable] Property isExample: Specifies whether the template is an example template.
is_favorite typing.Union[bool, ros_cdk_core.IResolvable] Property isFavorite: Specifies whether the template is added to favorites.
refresh_options typing.Union[str, ros_cdk_core.IResolvable] Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
resource_group_id typing.Union[str, ros_cdk_core.IResolvable] Property resourceGroupId: The ID of the resource group.
share_type typing.Union[str, ros_cdk_core.IResolvable] Property shareType: The share type of the template.
sort_field typing.Union[str, ros_cdk_core.IResolvable] Property sortField: The field that is used to sort the templates to be queried.
sort_order typing.Union[str, ros_cdk_core.IResolvable] Property sortOrder: The order in which you want to sort the results.
tags typing.Mapping[typing.Any] Property tags: The tag keys and values.
template_format typing.Union[str, ros_cdk_core.IResolvable] Property templateFormat: The format of the template.
template_name typing.Union[str, ros_cdk_core.IResolvable] Property templateName: The name of the template.
template_type typing.Union[str, ros_cdk_core.IResolvable] Property templateType: The type of the template.

categoryOptional

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

Property category: The type of the template.

Valid values include TimerTrigger, EventTrigger, AlarmTrigger, and Other.


created_byOptional

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

Property createdBy: The creator of the template.


created_date_afterOptional

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

Property createdDateAfter: Specifies to query the template that is created at or later than the specified time.The value must be in the YYYY-MM-DDThh:mm:ssZ format.


created_date_beforeOptional

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

Property createdDateBefore: Specifies to query the template that is created at or before the specified time.The value must be in the YYYY-MM-DDThh:mm::ssZ format.


has_triggerOptional

has_trigger: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property hasTrigger: Specifies whether to query the template that is configured with a trigger.


is_exampleOptional

is_example: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property isExample: Specifies whether the template is an example template.


is_favoriteOptional

is_favorite: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property isFavorite: Specifies whether the template is added to favorites.


refresh_optionsOptional

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

Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.

Valid values:

  • Never: Never refresh the datasource resource when the stack is updated.
  • Always: Always refresh the datasource resource when the stack is updated. Default is Never.

resource_group_idOptional

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

Property resourceGroupId: The ID of the resource group.


share_typeOptional

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

Property shareType: The share type of the template.

Valid values: Public Private


sort_fieldOptional

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

Property sortField: The field that is used to sort the templates to be queried.

Valid values: TotalExecutionCount (default): The system sorts the returned templates based on the total number of times that the templates are used. Popularity: The system sorts the returned templates based on the popularity of the templates. TemplateName: The system sorts the returned templates based on the names of the templates. CreatedDate: The system sorts the returned templates based on the points in time when the templates are created. UpdatedDate: The system sorts the returned templates based on the points in time when the templates are updated.


sort_orderOptional

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

Property sortOrder: The order in which you want to sort the results.

Valid values: Ascending: ascending order. Descending: descending order. This is the default value.


tagsOptional

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

Property tags: The tag keys and values.

The number of key-value pairs ranges from 1 to 20. Example: {"k1":"k2","k2":"v2"}


template_formatOptional

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

Property templateFormat: The format of the template.

Valid values: JSON YAML


template_nameOptional

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

Property templateName: The name of the template.


template_typeOptional

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

Property templateType: The type of the template.

Valid values: Automation: the template for automated tasks. State: the template for configuration inventories. Package: the template for software packages.


Protocols