DATASOURCE::ECS::DeploymentSet类型用于查询一个部署集的属性详情。
语法
{
"Type": "DATASOURCE::ECS::DeploymentSet",
"Properties": {
"DeploymentSetId": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
DeploymentSetId | String | 是 | 是 | 部署集 ID。 | 无 |
返回值
Fn::GetAtt
DeploymentSetId:部署集 ID。
InstanceAmount:部署集内的实例数量。
GroupCount:部署集中的分组数量。
CreateTime:部署集的创建时间。
Strategy:部署策略。
DeploymentSetName:部署集名称。
Granularity:部署粒度。
InstanceIds:部署集内的实例 ID 列表。
示例
YAML
格式ROSTemplateFormatVersion: '2015-09-01' Parameters: DeploymentSetId: Type: String Description: en: The ID of deployment set. Required: true AssociationProperty: ALIYUN::ECS::DeploymentSet::DeploymentSetId Resources: ExtensionDataSource: Type: DATASOURCE::ECS::DeploymentSet Properties: DeploymentSetId: Ref: DeploymentSetId Outputs: DeploymentSetId: Description: The ID of deployment set. Value: Fn::GetAtt: - ExtensionDataSource - DeploymentSetId InstanceAmount: Description: The number of instances in the deployment set. Value: Fn::GetAtt: - ExtensionDataSource - InstanceAmount GroupCount: Description: The number of deployment set groups in the deployment set. Value: Fn::GetAtt: - ExtensionDataSource - GroupCount CreateTime: Description: The time when the deployment set was created. Value: Fn::GetAtt: - ExtensionDataSource - CreateTime Strategy: Description: The deployment strategy. Value: Fn::GetAtt: - ExtensionDataSource - Strategy DeploymentSetName: Description: 'The name of the deployment set. ' Value: Fn::GetAtt: - ExtensionDataSource - DeploymentSetName Granularity: Description: The deployment granularity. Value: Fn::GetAtt: - ExtensionDataSource - Granularity InstanceIds: Description: The IDs of the instances in the deployment set. Value: Fn::GetAtt: - ExtensionDataSource - InstanceIds
JSON
格式{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "DeploymentSetId": { "Type": "String", "Description": { "en": "The ID of deployment set." }, "Required": true, "AssociationProperty": "ALIYUN::ECS::DeploymentSet::DeploymentSetId" } }, "Resources": { "ExtensionDataSource": { "Type": "DATASOURCE::ECS::DeploymentSet", "Properties": { "DeploymentSetId": { "Ref": "DeploymentSetId" } } } }, "Outputs": { "DeploymentSetId": { "Description": "The ID of deployment set.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "DeploymentSetId" ] } }, "InstanceAmount": { "Description": "The number of instances in the deployment set.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "InstanceAmount" ] } }, "GroupCount": { "Description": "The number of deployment set groups in the deployment set.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "GroupCount" ] } }, "CreateTime": { "Description": "The time when the deployment set was created.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "CreateTime" ] } }, "Strategy": { "Description": "The deployment strategy.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Strategy" ] } }, "DeploymentSetName": { "Description": "The name of the deployment set. ", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "DeploymentSetName" ] } }, "Granularity": { "Description": "The deployment granularity.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Granularity" ] } }, "InstanceIds": { "Description": "The IDs of the instances in the deployment set.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "InstanceIds" ] } } } }