Queries information about scaling configurations.
Syntax
{
"Type": "DATASOURCE::ESS::ScalingConfigurations",
"Properties": {
"ScalingGroupId": String,
"ScalingConfigurationIds": List,
"ScalingConfigurationNames": List,
"RefreshOptions": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
ScalingGroupId |
String |
No |
Yes |
The ID of the scaling group. |
None. |
|
ScalingConfigurationIds |
List |
No |
Yes |
The IDs of the scaling configurations. |
You can check the LifecycleState return value to determine whether a scaling configuration is active or inactive. Note
You can query up to 10 scaling configuration IDs in a request. |
|
ScalingConfigurationNames |
List |
No |
Yes |
The names of the scaling configurations. |
Inactive scaling configuration names are excluded from the query results without triggering an error. Note
You can query up to 10 scaling configuration names in a request. |
|
RefreshOptions |
String |
No |
Yes |
The refresh policy for data source resources when the stack is updated. |
Valid values:
|
Return values (Fn::GetAtt)
-
ScalingConfigurationIds: the IDs of the scaling configurations.
-
ScalingConfigurations: details of the scaling configurations.
|
Property |
Type |
Description |
Constraint |
|
ScalingConfigurationIds |
List |
The IDs of the scaling configurations. |
None. |
|
ScalingConfigurations |
List |
Details of the scaling configurations. |
None. |
|
ScalingConfigurationName |
String |
The name of the scaling configuration. |
None. |
|
LoadBalancerWeight |
Number |
The weight of the ECS instance as a backend server. |
Valid values: 1 to 100. |
|
IoOptimized |
String |
Indicates whether the instance is I/O optimized. |
Valid values:
|
|
ResourceGroupId |
String |
The ID of the resource group to which the ECS instance belongs. |
None. |
|
DataDisks |
List |
Details of the data disk. |
Example: |
|
SystemDiskSize |
Number |
The size of the system disk. |
None. |
|
ScalingGroupId |
String |
The ID of the scaling group to which the scaling configurations belong. |
None. |
|
SecurityGroupId |
String |
The ID of the security group to which the ECS instance belongs. |
ECS instances in the same security group can access each other. |
|
LifecycleState |
String |
The scaling configuration status in the scaling group. |
Valid values:
|
|
SecurityGroupIds |
List |
The IDs of the security groups to which the ECS instances belong. |
The security group IDs of the ECS instances. ECS instances in the same security group can access each other. Example: |
|
SystemDiskCategory |
String |
The category of the system disk. |
Valid values:
|
|
InternetChargeType |
String |
The metering method for network usage. |
Valid values:
|
|
InstanceName |
String |
The name of the ECS instance. |
None. |
|
InternetMaxBandwidthOut |
Number |
The maximum outbound public bandwidth. |
Unit: Mbit/s.
|
|
InternetMaxBandwidthIn |
Number |
The maximum inbound public bandwidth. |
Unit: Mbit/s. Valid values: 1 to 200. |
|
SystemDiskCategories |
List |
The categories of the system disks. |
Values are listed in descending order of priority. Valid values:
Note
If Auto Scaling cannot create system disks of the highest-priority category, it falls back to the next highest priority. |
|
CreationTime |
String |
The time when the scaling configuration was created. |
None. |
|
ImageId |
String |
The image ID. |
Auto Scaling uses this image to create instances automatically. |
|
SystemDiskEncrypted |
Boolean |
Indicates whether the system disk is encrypted. |
Valid values:
|
|
InstanceGeneration |
String |
The generation of the ECS instance. |
None. |
|
InstanceTypes |
List |
The ECS instance types. |
Example: |
|
InstanceType |
String |
The ECS instance type. |
None. |
|
ScalingConfigurationId |
String |
The ID of the scaling configuration. |
None. |
Examples
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ScalingGroupId": {
"Type": "String",
"Description": "The ID of the scaling group. You can use the ID to query all scaling configurations in the scaling group."
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::ESS::ScalingConfigurations",
"Properties": {
"ScalingGroupId": {
"Ref": "ScalingGroupId"
}
}
}
},
"Outputs": {
"ScalingConfigurationIds": {
"Description": "The list of scaling configuration IDs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ScalingConfigurationIds"
]
}
},
"ScalingConfigurations": {
"Description": "The list of scaling configurations.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ScalingConfigurations"
]
}
}
}
}ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ScalingGroupId:
Type: String
Description: The ID of the scaling group. You can use the ID to query all scaling configurations in the scaling group.
Resources:
ExtensionDataSource:
Type: DATASOURCE::ESS::ScalingConfigurations
Properties:
ScalingGroupId:
Ref: ScalingGroupId
Outputs:
ScalingConfigurationIds:
Description: The list of scaling configuration IDs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ScalingConfigurationIds
ScalingConfigurations:
Description: The list of scaling configurations.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ScalingConfigurations