DeploymentSetProps
Properties for defining a DeploymentSet.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-deploymentset
Initializer
import com.aliyun.ros.cdk.ecs.DeploymentSetProps;
DeploymentSetProps.builder()
// .deploymentSetName(java.lang.String)
// .deploymentSetName(IResolvable)
// .description(java.lang.String)
// .description(IResolvable)
// .groupCount(java.lang.Number)
// .groupCount(IResolvable)
// .onUnableToRedeployFailedInstance(java.lang.String)
// .onUnableToRedeployFailedInstance(IResolvable)
// .strategy(java.lang.String)
// .strategy(IResolvable)
.build();
Properties
| Name | Type | Description |
|---|---|---|
deploymentSetName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property deploymentSetName: The name of the deployment set. |
description | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property description: The description of the deployment set. |
groupCount | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property groupCount: Set the number of groups for the deployment set group high availability policy. |
onUnableToRedeployFailedInstance | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property onUnableToRedeployFailedInstance: The policy to use when an instance fails over but cannot be redeployed due to insufficient resources. |
strategy | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property strategy: The deployment strategy. |
deploymentSetNameOptional
public java.lang.Object getDeploymentSetName();
- Type: java.lang.String OR com.aliyun.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
public java.lang.Object getDescription();
- Type: java.lang.String OR com.aliyun.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://.
groupCountOptional
public java.lang.Object getGroupCount();
- Type: java.lang.Number OR com.aliyun.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.
onUnableToRedeployFailedInstanceOptional
public java.lang.Object getOnUnableToRedeployFailedInstance();
- Type: java.lang.String OR com.aliyun.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
public java.lang.Object getStrategy();
- Type: java.lang.String OR com.aliyun.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.