ScalingGroupEnable
This class encapsulates and extends the ROS resource type ALIYUN::ESS::ScalingGroupEnable
, which is used to enable a scaling group.
Initializers
import com.aliyun.ros.cdk.ess.ScalingGroupEnable;
ScalingGroupEnable.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.scalingGroupId(java.lang.String)
.scalingGroupId(IResolvable)
// .attachOptions(IResolvable)
// .attachOptions(AttachOptionsProperty)
// .detachOptions(IResolvable)
// .detachOptions(DetachOptionsProperty)
// .instanceIds(IResolvable)
// .instanceIds(java.util.List<java.lang.String)
// .instanceIds(IResolvable>)
// .removeInstanceIds(IResolvable)
// .removeInstanceIds(java.util.List<java.lang.String)
// .removeInstanceIds(IResolvable>)
// .scalingConfigurationId(java.lang.String)
// .scalingConfigurationId(IResolvable)
// .scalingRuleAris(IResolvable)
// .scalingRuleAris(java.util.List<java.lang.String)
// .scalingRuleAris(IResolvable>)
// .scalingRuleArisExecuteVersion(java.lang.Number)
// .scalingRuleArisExecuteVersion(IResolvable)
.build();
Name | Type | Description |
---|---|---|
scope |
com.aliyun.ros.cdk.core.Construct |
No description. |
id |
java.lang.String |
No description. |
enableResourcePropertyConstraint |
java.lang.Boolean |
No description. |
scalingGroupId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property scalingGroupId: The id of operated scaling group. |
attachOptions |
com.aliyun.ros.cdk.core.IResolvable OR AttachOptionsProperty |
Property attachOptions: Options for attaching instances. |
detachOptions |
com.aliyun.ros.cdk.core.IResolvable OR DetachOptionsProperty |
Property detachOptions: Options for detaching instances. |
instanceIds |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property instanceIds: The id list of ECS instance which will be attached. |
removeInstanceIds |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property removeInstanceIds: The id list of ECS instance which will be removed. |
scalingConfigurationId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property scalingConfigurationId: The id of scaling configuration which will be activate. |
scalingRuleAris |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property scalingRuleAris: A list of scaling rule aris which will be executed. |
scalingRuleArisExecuteVersion |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property scalingRuleArisExecuteVersion: The change of the property leads to the execution of all the scaling rule aris in ScalingRuleAris. |
scope
Required
- Type: com.aliyun.ros.cdk.core.Construct
id
Required
- Type: java.lang.String
enableResourcePropertyConstraint
Optional
- Type: java.lang.Boolean
scalingGroupId
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property scalingGroupId: The id of operated scaling group.
attachOptions
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR AttachOptionsProperty
Property attachOptions: Options for attaching instances.
detachOptions
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR DetachOptionsProperty
Property detachOptions: Options for detaching instances.
instanceIds
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property instanceIds: The id list of ECS instance which will be attached.
Max support 1000 instances.
removeInstanceIds
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property removeInstanceIds: The id list of ECS instance which will be removed.
Max support 1000 instances.
scalingConfigurationId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property scalingConfigurationId: The id of scaling configuration which will be activate.
scalingRuleAris
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property scalingRuleAris: A list of scaling rule aris which will be executed.
Max support 10 scaling rule aris. When creating the resource, all the scaling rule aris in the list will be executed. When updating the resource, none of scaling rule aris in the list will be executed, unless ScalingRuleArisExecuteVersion is changed.
scalingRuleArisExecuteVersion
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property scalingRuleArisExecuteVersion: The change of the property leads to the execution of all the scaling rule aris in ScalingRuleAris.
Methods
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
synthesize |
Allows this construct to emit artifacts into the cloud assembly during synthesis. |
addCondition |
No description. |
addCount |
No description. |
addDependency |
No description. |
addResourceDesc |
No description. |
applyRemovalPolicy |
No description. |
getAtt |
No description. |
setMetadata |
No description. |
toString
public java.lang.String toString()
Returns a string representation of this construct.
synthesize
public void synthesize(ISynthesisSession session)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack
and Asset
as they participate in synthesizing the cloud assembly.
- Type: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
Name | Description |
---|---|
isConstruct |
Return whether the given object is a Construct. |
isConstruct
import com.aliyun.ros.cdk.ess.ScalingGroupEnable;
ScalingGroupEnable.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
Properties
Name | Type | Description |
---|---|---|
node |
com.aliyun.ros.cdk.core.ConstructNode |
The construct tree node associated with this construct. |
ref |
java.lang.String |
No description. |
stack |
com.aliyun.ros.cdk.core.Stack |
The stack in which this resource is defined. |
resource |
com.aliyun.ros.cdk.core.RosResource |
No description. |
attrLifecycleState |
com.aliyun.ros.cdk.core.IResolvable |
Attribute LifecycleState: The scaling group status. |
attrScalingGroupId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ScalingGroupId: The scaling group id. |
attrScalingInstanceDetails |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ScalingInstanceDetails: Detail information of auto created scaling instances. |
attrScalingInstances |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ScalingInstances: The auto created scaling instances. |
attrScalingRuleArisExecuteErrorInfo |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ScalingRuleArisExecuteErrorInfo: The error info of the execution of scaling rule aris. |
attrScalingRuleArisExecuteResultInstancesAdded |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ScalingRuleArisExecuteResultInstancesAdded: Instances added via the execution of scaling rule aris. |
attrScalingRuleArisExecuteResultInstancesRemoved |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ScalingRuleArisExecuteResultInstancesRemoved: Instances removed via the execution of scaling rule aris. |
attrScalingRuleArisExecuteResultNumberOfAddedInstances |
com.aliyun.ros.cdk.core.IResolvable |
Attribute ScalingRuleArisExecuteResultNumberOfAddedInstances: The number of added vm via the execution of scaling rule aris. |
node
Required
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
ref
Required
public java.lang.String getRef();
- Type: java.lang.String
stack
Required
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resource
Optional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrLifecycleState
Required
public IResolvable getAttrLifecycleState();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute LifecycleState: The scaling group status.
attrScalingGroupId
Required
public IResolvable getAttrScalingGroupId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ScalingGroupId: The scaling group id.
attrScalingInstanceDetails
Required
public IResolvable getAttrScalingInstanceDetails();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ScalingInstanceDetails: Detail information of auto created scaling instances.
attrScalingInstances
Required
public IResolvable getAttrScalingInstances();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ScalingInstances: The auto created scaling instances.
attrScalingRuleArisExecuteErrorInfo
Required
public IResolvable getAttrScalingRuleArisExecuteErrorInfo();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ScalingRuleArisExecuteErrorInfo: The error info of the execution of scaling rule aris.
attrScalingRuleArisExecuteResultInstancesAdded
Required
public IResolvable getAttrScalingRuleArisExecuteResultInstancesAdded();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ScalingRuleArisExecuteResultInstancesAdded: Instances added via the execution of scaling rule aris.
attrScalingRuleArisExecuteResultInstancesRemoved
Required
public IResolvable getAttrScalingRuleArisExecuteResultInstancesRemoved();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ScalingRuleArisExecuteResultInstancesRemoved: Instances removed via the execution of scaling rule aris.
attrScalingRuleArisExecuteResultNumberOfAddedInstances
Required
public IResolvable getAttrScalingRuleArisExecuteResultNumberOfAddedInstances();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ScalingRuleArisExecuteResultNumberOfAddedInstances: The number of added vm via the execution of scaling rule aris.