DATASOURCE::ECS::DeploymentSet类型用于查询一个部署集的属性详情。
语法
{
"Type": "DATASOURCE::ECS::DeploymentSet",
"Properties": {
"DeploymentSetId": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
DeploymentSetId | String | 是 | 是 | 部署集 ID。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值:
|
返回值
Fn::GetAtt
DeploymentSetId:部署集 ID。
InstanceAmount:部署集内的实例数量。
GroupCount:部署集中的分组数量。
CreateTime:部署集的创建时间。
Strategy:部署策略。
DeploymentSetName:部署集名称。
Granularity:部署粒度。
InstanceIds:部署集内的实例 ID 列表。
示例
YAML
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
{
"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"
]
}
}
}
}
该文章对您有帮助吗?
- 本页导读 (1)
- 语法
- 属性
- 返回值
- 示例