Skip to content

ProjectProps

Properties for defining a Project.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-sls-project

Initializer

import ros_cdk_sls
ros_cdk_sls.ProjectProps(
  name: typing.Union[str, IResolvable],
  data_redundancy_type: typing.Union[str, IResolvable] = None,
  description: typing.Union[str, IResolvable] = None,
  resource_group_id: typing.Union[str, IResolvable] = None,
  tags: typing.List[TagsProperty] = None
)

Properties

Name Type Description
name typing.Union[str, ros_cdk_core.IResolvable] Property name: Project name: 1.
data_redundancy_type typing.Union[str, ros_cdk_core.IResolvable] Property dataRedundancyType: Disaster recovery type.LRS: Local redundant storage.ZRS: Local redundant storage.
description typing.Union[str, ros_cdk_core.IResolvable] Property description: Project description: <>'"\ is not supported, up to 64 characters.
resource_group_id typing.Union[str, ros_cdk_core.IResolvable] Property resourceGroupId: The ID of the resource group to which the sls project belongs.
tags typing.List[TagsProperty] Property tags: Tags to attach to project.

nameRequired

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

Property name: Project name: 1.

Only supports lowercase letters, numbers, hyphens (-) and underscores (_). 2. Must start and end with lowercase letters and numbers. 3. The name length is 3-63 characters.


data_redundancy_typeOptional

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

Property dataRedundancyType: Disaster recovery type.LRS: Local redundant storage.ZRS: Local redundant storage.


descriptionOptional

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

Property description: Project description: <>'"\ is not supported, up to 64 characters.


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 to which the sls project belongs.

If not provided, the project belongs to the default resource group.


tagsOptional

tags: typing.List[TagsProperty]

Property tags: Tags to attach to project.

Max support 20 tags to add during create project. Each tag with two properties Key and Value, and Key is required.