AssociationProperty取值 | 說明 | 對應的AssociationPropertyMetadata |
ALIYUN::ESS::AutoScalingGroup::AutoScalingGroupId | ESS伸縮組ID。 | RegionId:地區ID(預設為資源棧所屬地區)。 樣本如下: 範例程式碼 JSON樣本: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId"
},
"AutoScalingGroupId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ESS::AutoScalingGroup::AutoScalingGroupId",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}"
}
}
}
}
YAML樣本: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
AutoScalingGroupId:
Type: String
AssociationProperty: ALIYUN::ESS::AutoScalingGroup::AutoScalingGroupId
AssociationPropertyMetadata:
RegionId: ${RegionId}
樣本說明 樣本中通過指定參數AutoScalingGroupId的AssociationProperty屬性為ALIYUN::ESS::AutoScalingGroup::AutoScalingGroupId,實現擷取Auto Scaling組ID資訊。
|
ALIYUN::ESS::ECIScalingConfiguration::ContainerName | 查詢ECI類型的伸縮組配置資訊。 | 範例程式碼 JSON樣本: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId"
},
"ESSECIScalingConfigurationContainerName": {
"Type": "String",
"AssociationProperty": "ALIYUN::ESS::ECIScalingConfiguration::ContainerName",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}"
}
}
}
}
YAML樣本: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
ESSECIScalingConfigurationContainerName:
Type: String
AssociationProperty: ALIYUN::ESS::ECIScalingConfiguration::ContainerName
AssociationPropertyMetadata:
RegionId: ${RegionId}
|
ALIYUN::ESS::ECIScalingConfiguration::ScalingConfigurationId | 查詢伸縮配置的ID。 | 範例程式碼 JSON樣本: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId"
},
"AutoScalingGroupId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ESS::AutoScalingGroup::AutoScalingGroupId",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}"
}
},
"ServiceConnectionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ESS::ECIScalingConfiguration::ScalingConfigurationId",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}",
"ScalingGroupId": "${AutoScalingGroupId}",
"AutoSelectFirst": true
}
}
}
}
YAML樣本: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
AutoScalingGroupId:
Type: String
AssociationProperty: ALIYUN::ESS::AutoScalingGroup::AutoScalingGroupId
AssociationPropertyMetadata:
RegionId: ${RegionId}
ServiceConnectionId:
Type: String
AssociationProperty: ALIYUN::ESS::ECIScalingConfiguration::ScalingConfigurationId
AssociationPropertyMetadata:
RegionId: ${RegionId}
ScalingGroupId: ${AutoScalingGroupId}
AutoSelectFirst: true
|
ALIYUN::ESS::ScalingConfiguration::ScalingConfigurationId | Auto Scaling配置ID。 | RegionId:地區ID(預設為資源棧所屬地區)。 樣本如下: 範例程式碼 JSON樣本: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId"
},
"ScalingConfigurationId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ESS::ScalingConfiguration::ScalingConfigurationId",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}"
}
}
}
}
YAML樣本: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
ScalingConfigurationId:
Type: String
AssociationProperty: ALIYUN::ESS::ScalingConfiguration::ScalingConfigurationId
AssociationPropertyMetadata:
RegionId: ${RegionId}
樣本說明 樣本中通過指定參數ScalingConfigurationId的AssociationProperty屬性為ALIYUN::ESS::ScalingConfiguration::ScalingConfigurationId,實現擷取Auto Scaling配置ID資訊。
|