DATASOURCE::ECS::DeploymentSet

更新时间:2025-01-02 01:47:29

DATASOURCE::ECS::DeploymentSet类型用于查询一个部署集的属性详情。

语法

{
  "Type": "DATASOURCE::ECS::DeploymentSet",
  "Properties": {
    "DeploymentSetId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

属性名称

类型

必须

允许更新

描述

约束

DeploymentSetId

String

部署集 ID。

RefreshOptions

String

当资源栈更新时,数据源资源的刷新策略。

有效值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回值

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)
  • 语法
  • 属性
  • 返回值
  • 示例
AI助理

点击开启售前

在线咨询服务

你好,我是AI助理

可以解答问题、推荐解决方案等