Skip to content

DeploymentSetProps

Properties for defining a DeploymentSet.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-deploymentset

Initializer

import ros_cdk_ecs
ros_cdk_ecs.DeploymentSetProps(
  deployment_set_name: typing.Union[str, IResolvable] = None,
  description: typing.Union[str, IResolvable] = None,
  group_count: typing.Union[typing.Union[int, float], IResolvable] = None,
  on_unable_to_redeploy_failed_instance: typing.Union[str, IResolvable] = None,
  strategy: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
deployment_set_name typing.Union[str, ros_cdk_core.IResolvable] Property deploymentSetName: The name of the deployment set.
description typing.Union[str, ros_cdk_core.IResolvable] Property description: The description of the deployment set.
group_count typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property groupCount: Set the number of groups for the deployment set group high availability policy.
on_unable_to_redeploy_failed_instance typing.Union[str, ros_cdk_core.IResolvable] Property onUnableToRedeployFailedInstance: The policy to use when an instance fails over but cannot be redeployed due to insufficient resources.
strategy typing.Union[str, ros_cdk_core.IResolvable] Property strategy: The deployment strategy.

deployment_set_nameOptional

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

Property deploymentSetName: The name of the deployment set.

It must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).


descriptionOptional

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

Property description: The description of the deployment set.

It must be 2 to 256 characters in length. It cannot start with http:// or https://.


group_countOptional

group_count: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property groupCount: Set the number of groups for the deployment set group high availability policy.

Value range: 1~7. Default value: 3. This parameter only takes effect when Strategy=AvailabilityGroup.


on_unable_to_redeploy_failed_instanceOptional

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

Property onUnableToRedeployFailedInstance: The policy to use when an instance fails over but cannot be redeployed due to insufficient resources.

Valid values:

  • CancelMembershipAndStart: Removes the instance from the deployment set and starts the instance immediately after failover.
  • KeepStopped: Keeps the instance's deployment set membership and leaves it in the Stopped state. Default value: CancelMembershipAndStart.

strategyOptional

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

Property strategy: The deployment strategy.

Valid values:

  • Availability: A high availability strategy.
  • AvailabilityGroup: A high availability strategy for a deployment set group.
  • LowLatency: A low-latency strategy. Default value: Availability.