AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::ECS::ZoneId | Query ECS zone IDs. | RegionId: The region ID. The default value is the region where the stack resides. SystemDiskCategory: The system disk type. InstanceType: The instance type. InstanceChargeType: The instance billing method. WithAvailableResource: Filters zones that have inventory for any instance type.
Example: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId"
},
"ZoneId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::ZoneId",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}"
}
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
ZoneId:
Type: String
AssociationProperty: ALIYUN::ECS::ZoneId
AssociationPropertyMetadata:
RegionId: ${RegionId}
|
ALIYUN::ECS::Command::CommandId | The Cloud Assistant command ID or Alibaba Cloud command ID. | Example: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId"
},
"CommandId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::Command::CommandId",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}"
}
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
CommandId:
Type: String
AssociationProperty: ALIYUN::ECS::Command::CommandId
AssociationPropertyMetadata:
RegionId: ${RegionId}
Example description This example shows how to obtain ECS Cloud Assistant commands or public commands provided by Alibaba Cloud in the current region by setting the AssociationProperty of the CommandId parameter to ALIYUN::ECS::Command::CommandId and the AssociationPropertyMetadata to RegionId.
|
ALIYUN::ECS::DeploymentSet::DeploymentSetId | Query the deployment set ID of an ECS deployment set. | Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId"
},
"ECSDeploymentSetId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::DeploymentSet::DeploymentSetId",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}",
"Strategy": "Availability"
}
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
ECSDeploymentSetId:
Type: String
AssociationProperty: ALIYUN::ECS::DeploymentSet::DeploymentSetId
AssociationPropertyMetadata:
RegionId: ${RegionId}
Strategy: Availability
|
ALIYUN::ECS::Disk::DataDiskCategory | The data disk type. | Example: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "RegionId"
},
"ZoneId": {
"Type": "String",
"AssociationProperty": "ZoneId"
},
"InstanceType": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::Instance::InstanceType",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}",
"ZoneId": "${ZoneId}"
}
},
"DataDiskCategory": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::Disk::DataDiskCategory",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}",
"ZoneId": "${ZoneId}",
"InstanceType": "${InstanceType}"
}
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: RegionId
ZoneId:
Type: String
AssociationProperty: ZoneId
InstanceType:
Type: String
AssociationProperty: ALIYUN::ECS::Instance::InstanceType
AssociationPropertyMetadata:
RegionId: ${RegionId}
ZoneId: ${ZoneId}
DataDiskCategory:
Type: String
AssociationProperty: ALIYUN::ECS::Disk::DataDiskCategory
AssociationPropertyMetadata:
RegionId: ${RegionId}
ZoneId: ${ZoneId}
InstanceType: ${InstanceType}
Example description This example shows how to obtain the ECS data disk type by setting the AssociationProperty of the DataDiskCategory parameter to ALIYUN::ECS::Disk::DataDiskCategory and the AssociationPropertyMetadata to RegionId, ZoneId, and InstanceType.
|
ALIYUN::ECS::Disk::DiskId | The disk ID. | RegionId: The region ID. The default value is the region where the stack resides. ZoneId: The zone ID. InstanceId: The instance ID. DiskType: The disk type. Category: The instance type. SnapshotId: The snapshot ID. DiskChargeType: The disk billing method.
Example: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId"
},
"DiskId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::Disk::DiskId",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}"
}
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
DiskId:
Type: String
AssociationProperty: ALIYUN::ECS::Disk::DiskId
AssociationPropertyMetadata:
RegionId: ${RegionId}
Example description This example shows how to obtain the ECS cloud disk ID in the current zone by setting the AssociationProperty of the DiskId parameter to ALIYUN::ECS::Disk::DiskId and the AssociationPropertyMetadata to RegionId.
|
ALIYUN::ECS::Disk::SystemDiskCategory | The system disk type. | Example: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "RegionId"
},
"ZoneId": {
"Type": "String",
"AssociationProperty": "ZoneId"
},
"InstanceType": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::Instance::InstanceType",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}",
"ZoneId": "${ZoneId}"
}
},
"SystemDiskCategory": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::Disk::SystemDiskCategory",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}",
"ZoneId": "${ZoneId}",
"InstanceType": "${InstanceType}"
}
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: RegionId
ZoneId:
Type: String
AssociationProperty: ZoneId
InstanceType:
Type: String
AssociationProperty: ALIYUN::ECS::Instance::InstanceType
AssociationPropertyMetadata:
RegionId: ${RegionId}
ZoneId: ${ZoneId}
SystemDiskCategory:
Type: String
AssociationProperty: ALIYUN::ECS::Disk::SystemDiskCategory
AssociationPropertyMetadata:
RegionId: ${RegionId}
ZoneId: ${ZoneId}
InstanceType: ${InstanceType}
Example description This example shows how to obtain the ECS system disk type by setting the AssociationProperty of the SystemDiskCategory parameter to ALIYUN::ECS::Disk::SystemDiskCategory and the AssociationPropertyMetadata to RegionId, ZoneId, and InstanceType.
|
ALIYUN::ECS::Image::ImageId | The image ID. | RegionId: The region ID. The default value is the region where the stack resides. SupportedImageOwnerAlias: The supported image type. InstanceType: The instance type. ImageFamily: The image family name. IsSupportIoOptimized: Indicates whether the image can run on an I/O optimized instance. OSType: The operating system type. Architecture: The image architecture. Usage: Indicates whether the image is currently running on an ECS instance.
Example: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId"
},
"ImageId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::Image::ImageId",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}",
"SupportedImageOwnerAlias": ["system", "self", "others"]
}
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
ImageId:
Type: String
AssociationProperty: ALIYUN::ECS::Image::ImageId
AssociationPropertyMetadata:
RegionId: ${RegionId}
SupportedImageOwnerAlias:
- system
- self
- others
Example description This example shows how to obtain the ECS image ID in the current zone by setting the AssociationProperty of the ImageId parameter to ALIYUN::ECS::Image::ImageId and the AssociationPropertyMetadata to RegionId and SupportedImageOwnerAlias.
|
ALIYUN::ECS::Instance::AttributeSelector | The ECS attribute selector. | Example: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"AttributeSelector": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::Instance::AttributeSelector"
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
AttributeSelector:
Type: String
AssociationProperty: ALIYUN::ECS::Instance::AttributeSelector
Example description This example shows how to obtain the ECS attribute selector by setting the AssociationProperty of the AttributeSelector parameter to ALIYUN::ECS::Instance::AttributeSelector.
|
ALIYUN::ECS::Instance::InstanceId | The ECS instance ID. | RegionId: The region ID. The default value is the region where the stack resides. InstanceType: The instance type. InstanceTypeFamily: The instance family. Platform: The operating system platform. OSType: The operating system type. Status: The instance status. NetworkType: The instance network type. DisabledNetworkType: Disables network type. ShowNetworkType: Displays instance network type. InternetChargeType: The public bandwidth billing method. DisabledInternetChargeType: Disables public bandwidth billing method. ShowInternetChargeType: Displays public bandwidth billing method. ChargeType: The instance billing method. DisabledChargeType: Disables instance billing method. ShowChargeType: Displays instance billing method.
Example: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId"
},
"InstanceId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::Instance::InstanceId",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}"
}
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
InstanceId:
Type: String
AssociationProperty: ALIYUN::ECS::Instance::InstanceId
AssociationPropertyMetadata:
RegionId: ${RegionId}
Example description This example shows how to obtain existing Elastic Compute Service (ECS) instances in the current available region by setting the AssociationProperty of the InstanceId parameter to ALIYUN::ECS::Instance::InstanceId and the AssociationPropertyMetadata to RegionId.
|
ALIYUN::ECS::Instance::InstancePropertyEditor | The ECS instance property editor. | Example: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstancePropertyEditor": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::Instance::InstancePropertyEditor"
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
InstancePropertyEditor:
Type: String
AssociationProperty: ALIYUN::ECS::Instance::InstancePropertyEditor
Example description This example shows how to obtain the ECS instance property editor by setting the AssociationProperty of the InstancePropertyEditor parameter to ALIYUN::ECS::Instance::InstancePropertyEditor.
|
ALIYUN::ECS::Instance::InstanceType | The ECS instance type. | RegionId: The region ID. The default value is the region where the stack resides. ZoneId: The zone ID. InstanceChargeType: The instance billing method. SpotStrategy: The bidding policy for pay-as-you-go instances. CreateACKClusterParams: Filters ECS instance types supported by container service. Constraints: Defines instance type filtering conditions (allows multiple condition combinations). InstanceType: The instance type, such as ecs.c6.xlarge. InstanceTypeFamily: The instance family to which the instance type belongs, such as ecs.c6. vCPU: The number of vCPU cores for the instance type. Memory: The memory size of the instance type. Architecture: The CPU architecture. CustomizeFamily: Custom instance family. high-clockSpeed general-purpose compute-optimized memory-optimized big-data local-ssd arm-general-purpose arm-compute-optimized arm-memory-optimized gpu-a10 gpu-v100 gpu-t4 gpu-p100 gpu-p4 gpu-grid gpu-arm gpu-fpga-asic gpu-other basic elastic-bareMetal-compute elastic-bareMetal-GPU-compute super-computeCluster-compute super-computeCluster-GPU-compute enhancement current-recommendation elastic-bareMetal-compute-china-CPU
Example: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstanceType": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::Instance::InstanceType",
"AssociationPropertyMetadata": {
"Constraints": {
"Architecture": [
"X86"
],
"vCPU": [
4
],
"Memory": [
8
]
}
}
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
InstanceType:
Type: String
AssociationProperty: ALIYUN::ECS::Instance::InstanceType
AssociationPropertyMetadata:
Constraints:
Architecture:
- X86
vCPU:
- 4
Memory:
- 8
Example description This example shows how to obtain ECS instance types in the current region with x86 computing architecture, 4 vCPUs, and 8 GB of memory by setting the AssociationProperty of the InstanceType parameter to ALIYUN::ECS::Instance::InstanceType and the AssociationPropertyMetadata to Constraints (Architecture, vCPU, Memory).
|
ALIYUN::ECS::Instance::MaxBandwidthIn | The maximum inbound public bandwidth for ECS. | Example: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"MaxBandwidthIn": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::Instance::MaxBandwidthIn"
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
MaxBandwidthIn:
Type: String
AssociationProperty: ALIYUN::ECS::Instance::MaxBandwidthIn
Example description This example shows how to obtain the maximum inbound public bandwidth for ECS by setting the AssociationProperty of the MaxBandwidthIn parameter to ALIYUN::ECS::Instance::MaxBandwidthIn.
|
ALIYUN::ECS::Instance::OSType | Queries the operating system type of ECS instances. | Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId"
},
"ECSInstanceId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::Instance::InstanceId",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}"
}
},
"ECSOSType": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::Instance::OSType",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}",
"InstanceId": "${ECSInstanceId}"
}
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
ECSInstanceId:
Type: String
AssociationProperty: ALIYUN::ECS::Instance::InstanceId
AssociationPropertyMetadata:
RegionId: ${RegionId}
ECSOSType:
Type: String
AssociationProperty: ALIYUN::ECS::Instance::OSType
AssociationPropertyMetadata:
RegionId: ${RegionId}
InstanceId: ${ECSInstanceId}
|
ALIYUN::ECS::Instance::Password | The ECS instance password component.
Note The password must contain 8 to 30 characters and include at least three of the following: uppercase letters, lowercase letters, digits, or special characters. | Example: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"password": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::Instance::Password"
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
password:
Type: String
AssociationProperty: ALIYUN::ECS::Instance::Password
Example description In this example, setting the AssociationProperty attribute of the password parameter to ALIYUN::ECS::Instance::Password enforces conditions on the ECS instance password. Condition: The password must be 8 to 30 characters long and include at least three of the following: uppercase letters, lowercase letters, digits, or special characters.
|
ALIYUN::ECS::Instance::RenewPeriod | ECS renewal period. | Examples: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RenewPeriod": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::Instance::RenewPeriod"
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RenewPeriod:
Type: String
AssociationProperty: ALIYUN::ECS::Instance::RenewPeriod
Example description This example obtains the ECS renewal period by setting the `AssociationProperty` of the `RenewPeriod` parameter to `ALIYUN::ECS::Instance::RenewPeriod`.
|
ALIYUN::ECS::Instance::StopMode | The stop mode for an ECS instance. | Examples: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"StopMode": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::Instance::StopMode"
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
StopMode:
Type: String
AssociationProperty: ALIYUN::ECS::Instance::StopMode
Example description In this example, the AssociationProperty property for the StopMode parameter is set to ALIYUN::ECS::Instance::StopMode to retrieve the available stop modes for an ECS instance.
|
ALIYUN::ECS::InstanceType::AvailableInstanceType | Available ECS instance types. | Examples: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"AvailableInstanceType": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::InstanceType::AvailableInstanceType"
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
AvailableInstanceType:
Type: String
AssociationProperty: ALIYUN::ECS::InstanceType::AvailableInstanceType
Example description This example sets the AssociationProperty parameter of AvailableInstanceType to ALIYUN::ECS::InstanceType::AvailableInstanceType to obtain available ECS instance types.
|
ALIYUN::ECS::KeyPair::KeyPairName | Key pair. | RegionId: The region ID (defaults to the stack's region). Examples: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId"
},
"KeyPairName": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::KeyPair::KeyPairName",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}"
}
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
KeyPairName:
Type: String
AssociationProperty: ALIYUN::ECS::KeyPair::KeyPairName
AssociationPropertyMetadata:
RegionId: ${RegionId}
Example description This example retrieves the ECS key pair in the current region by setting the `AssociationProperty` property of the `KeyPairName` parameter to `ALIYUN::ECS::KeyPair::KeyPairName` and the `AssociationPropertyMetadata` property to `RegionId`.
|
ALIYUN::ECS::LaunchTemplate::LaunchTemplateId | The launch template ID. | RegionId: The region ID. The default value is the region where the stack resides. Examples: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId"
},
"LaunchTemplateId":{
"AssociationProperty":"ALIYUN::ECS::LaunchTemplate::LaunchTemplateId",
"Type":"String",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}"
}
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
LaunchTemplateId:
AssociationProperty: ALIYUN::ECS::LaunchTemplate::LaunchTemplateId
Type: String
AssociationPropertyMetadata:
RegionId: ${RegionId}
Example description In this example, the AssociationProperty property for the LaunchTemplateId parameter is set to ALIYUN::ECS::LaunchTemplate::LaunchTemplateId, and the AssociationPropertyMetadata property is set to RegionId. This retrieves the ECS launch templates in the specified region.
|
ALIYUN::ECS::LaunchTemplate::LaunchTemplateVersion | Instance launch template version. | Examples: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId"
},
"LaunchTemplateId": {
"AssociationProperty": "ALIYUN::ECS::LaunchTemplate::LaunchTemplateId",
"Type": "String",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}"
}
},
"LaunchTemplateVersion": {
"AssociationProperty": "ALIYUN::ECS::LaunchTemplate::LaunchTemplateVersion",
"Type": "String",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}",
"LaunchTemplateId": "${LaunchTemplateId}"
}
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
LaunchTemplateId:
AssociationProperty: ALIYUN::ECS::LaunchTemplate::LaunchTemplateId
Type: String
AssociationPropertyMetadata:
RegionId: ${RegionId}
LaunchTemplateVersion:
AssociationProperty: ALIYUN::ECS::LaunchTemplate::LaunchTemplateVersion
Type: String
AssociationPropertyMetadata:
RegionId: ${RegionId}
LaunchTemplateId: ${LaunchTemplateId}
Example description This example retrieves the version information of the selected ECS launch template by setting the `AssociationProperty` attribute of the `LaunchTemplateVersion` parameter to `ALIYUN::ECS::LaunchTemplate::LaunchTemplateVersion` and the `AssociationPropertyMetadata` attribute to `RegionId` and `LaunchTemplateId`.
|
ALIYUN::ECS::ManagedInstance::InstanceId | The ID of the ECS managed instance. | Examples: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId"
},
"InstanceId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::ManagedInstance::InstanceId",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}"
}
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
InstanceId:
Type: String
AssociationProperty: ALIYUN::ECS::ManagedInstance::InstanceId
AssociationPropertyMetadata:
RegionId: ${RegionId}
Example description In this example, you can set the AssociationProperty of the InstanceId parameter to ALIYUN::ECS::ManagedInstance::InstanceId and its AssociationPropertyMetadata to RegionId to retrieve the ID of an active ECS managed instance in the current region.
|
ALIYUN::ECS::RAM::Role | The instance RAM role attached to the ECS instance. | Examples: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Role": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RAM::Role"
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Role:
Type: String
AssociationProperty: ALIYUN::ECS::RAM::Role
Example description In this example, the AssociationProperty property of the Role parameter is set to ALIYUN::ECS::RAM::Role to retrieve the instance RAM role attached to the ECS instance.
|
ALIYUN::ECS::RegionId | The region ID. The default value is the region where the stack resides. | Examples: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId"
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
Example description In this example, setting the AssociationProperty of the RegionId parameter to ALIYUN::ECS::RegionId lists all active regions.
|
ALIYUN::ECS::RegionId::RegionDeploy | Sets the ECS deployment region. | Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ECSRegionDeploy": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId::RegionDeploy"
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ECSRegionDeploy:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId::RegionDeploy
|
ALIYUN::ECS::RegionId::TargetRegionIds | Destination region ID of the ECS instance. | Examples: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"TargetRegionIds": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId::TargetRegionIds"
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
TargetRegionIds:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId::TargetRegionIds
Example description This example sets the AssociationProperty parameter of TargetRegionIds to ALIYUN::ECS::RegionId::TargetRegionIds to obtain the destination region ID of the ECS instance.
|
ALIYUN::ECS::ResourceGroup::ResourceGroupId | The resource group. | Examples: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ResourceGroupId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::ResourceGroup::ResourceGroupId"
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ResourceGroupId:
Type: String
AssociationProperty: ALIYUN::ECS::ResourceGroup::ResourceGroupId
Example description In this example, the AssociationProperty property of the ResourceGroupId parameter is set to ALIYUN::ECS::ResourceGroup::ResourceGroupId.
|
ALIYUN::ECS::SecurityGroup::PortRange | Sets the port range for an ECS security group based on the IP protocol. | Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ECSSecurityGroupPortRange": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::SecurityGroup::PortRange",
"AssociationPropertyMetadata": {
"IpProtocol": "ALL"
}
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ECSSecurityGroupPortRange:
Type: String
AssociationProperty: ALIYUN::ECS::SecurityGroup::PortRange
AssociationPropertyMetadata:
IpProtocol: ALL
|
ALIYUN::ECS::SecurityGroup::SecurityGroupId | The ID of the security group. | Examples: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId"
},
"VpcId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}"
}
},
"SecurityGroupId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::SecurityGroup::SecurityGroupId",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}",
"VpcId": "${VpcId}"
}
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
VpcId:
Type: String
AssociationProperty: ALIYUN::ECS::VPC::VPCId
AssociationPropertyMetadata:
RegionId: ${RegionId}
SecurityGroupId:
Type: String
AssociationProperty: ALIYUN::ECS::SecurityGroup::SecurityGroupId
AssociationPropertyMetadata:
RegionId: ${RegionId}
VpcId: ${VpcId}
Example description In this example, setting the AssociationProperty property of the SecurityGroupId parameter to ALIYUN::ECS::SecurityGroup::SecurityGroupId and the AssociationPropertyMetadata property to RegionId and VpcId retrieves the IDs of security groups in the selected VPC and the current region.
|
ALIYUN::ECS::Snapshot::AutoSnapshotPolicyId | The ID of the automatic snapshot policy. | RegionId: The ID of the region. The default value is the region of the stack. Examples: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId"
},
"AutoSnapshotPolicyId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::Snapshot::AutoSnapshotPolicyId",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}"
}
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
AutoSnapshotPolicyId:
Type: String
AssociationProperty: ALIYUN::ECS::Snapshot::AutoSnapshotPolicyId
AssociationPropertyMetadata:
RegionId: ${RegionId}
Example description In this example, the AssociationProperty property of the AutoSnapshotPolicyId parameter is set to ALIYUN::ECS::Snapshot::AutoSnapshotPolicyId, and the AssociationPropertyMetadata property is set to RegionId. This retrieves the ECS automatic snapshot policies in the current region.
|
ALIYUN::ECS::Snapshot::SnapshotId | ECS instance disk snapshot ID. | RegionId: The region ID. The default value is the region where the stack is located. InstanceId: ECS instance ID. DiskId: Disk ID. Status: Snapshot status. SnapshotType: Snapshot creation type. Category: Snapshot category.
Examples: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"DiskId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::Disk::DiskId"
},
"SnapshotId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::Snapshot::SnapshotId",
"AssociationPropertyMetadata": {
"DiskId": "${DiskId}"
}
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
DiskId:
Type: String
AssociationProperty: ALIYUN::ECS::Disk::DiskId
SnapshotId:
Type: String
AssociationProperty: ALIYUN::ECS::Snapshot::SnapshotId
AssociationPropertyMetadata:
DiskId: ${DiskId}
Example description In this example, the AssociationProperty of the SnapshotId parameter is set to ALIYUN::ECS::Snapshot::SnapshotId to obtain the ECS instance disk snapshot ID.
|
ALIYUN::ECS::TAG | ECS instances have attached tag information. | RegionId: The region ID. By default, this is the region where the stack resides. ResourceType: The resource type definition.
Examples: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId"
},
"Tag": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::TAG",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}"
}
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
Tag:
Type: String
AssociationProperty: ALIYUN::ECS::TAG
AssociationPropertyMetadata:
RegionId: ${RegionId}
Example description In this example, you can set the AssociationProperty attribute of the Tag parameter to ALIYUN::ECS::TAG to retrieve ECS instance tag information.
|
ALIYUN::ECS::VPC::VPCId | VPC ID. | RegionId: The region ID. The default value is the region where the stack resides. Examples: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId"
},
"VpcId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}"
}
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
VpcId:
Type: String
AssociationProperty: ALIYUN::ECS::VPC::VPCId
AssociationPropertyMetadata:
RegionId: ${RegionId}
Example description In this example, the AssociationProperty of the VpcId parameter is set to ALIYUN::ECS::VPC::VPCId and the AssociationPropertyMetadata is set to RegionId. This lets you obtain the VPC ID in the current region.
|
ALIYUN::ECS::VSwitch | A vSwitch object. | RegionId: The ID of the region. The default value is the region where the stack resides. ZoneId: The ID of the zone. VpcId: The ID of the virtual private cloud (VPC). InstanceType: The instance type.
Examples: Example code JSON example: {
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RegionId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::RegionId"
},
"ZoneId": {
"Type": "String",
"AssociationProperty": "ZoneId"
},
"VSwitchId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::VSwitch",
"AssociationPropertyMetadata": {
"RegionId": "${RegionId}",
"ZoneId": "${ZoneId}"
}
}
}
}
YAML example: ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RegionId:
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
ZoneId:
Type: String
AssociationProperty: ZoneId
VSwitchId:
Type: String
AssociationProperty: ALIYUN::ECS::VSwitch
AssociationPropertyMetadata:
RegionId: ${RegionId}
ZoneId: ${ZoneId}
Example description In this example, the AssociationProperty property of the VSwitchId parameter is set to ALIYUN::ECS::VSwitch, and the AssociationPropertyMetadata property is set to RegionId and ZoneId, to obtain the selected active vSwitch object in the current region.
|