DATASOURCE::ACM::Namespaces类型用于获取命名空间列表。

属性

返回数据(Fn::GetAtt)

属性名称 类型 描述 约束
NamespaceIds List 命名空间ID列表。
Namespaces List 命令空间详情列表。
NamespaceId String 命名空间ID。
NamespaceName String 命名空间名称。
Type Integer 命名空间类型。 取值:
  • 1:默认命名空间。
  • 2:自定义命名空间。
Quota Integer 配置数上限。
ConfigCount Integer 配置数。

示例

  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Resources": {
        "Namespaces": {
          "Type": "DATASOURCE::ACM::Namespaces",
          "Properties": {}
        }
      },
      "Outputs": {
        "Namespaces": {
          "Description": "The list of namespaces.",
          "Value": {
            "Fn::GetAtt": [
              "Namespaces",
              "Namespaces"
            ]
          }
        },
        "NamespaceIds": {
          "Description": "The list of namespace IDs.",
          "Value": {
            "Fn::GetAtt": [
              "Namespaces",
              "NamespaceIds"
            ]
          }
        }
      }
    }
  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Resources:
      Namespaces:
        Type: DATASOURCE::ACM::Namespaces
        Properties: {}
    Outputs:
      Namespaces:
        Description: The list of namespaces.
        Value:
          Fn::GetAtt:
            - Namespaces
            - Namespaces
      NamespaceIds:
        Description: The list of namespace IDs.
        Value:
          Fn::GetAtt:
            - Namespaces
            - NamespaceIds