All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::ACM::Namespaces

Last Updated:Nov 01, 2024

DATASOURCE::ACM::Namespaces is used to query namespaces.

Syntax

{
  "Type": "DATASOURCE::ACM::Namespaces",
  "Properties": {
    "RefreshOptions": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

RefreshOptions

String

No

Yes

The refresh policy for data source resources when the stack is updated.

Valid values:

  • Never (default): does not refresh data source resources when the stack is updated.

  • Always: refreshes data source resources when the stack is updated.

Return values (Fn::GetAtt)

Property

Type

Description

Constraint

NamespaceIds

List

The IDs of the namespaces.

None.

Namespaces

List

Details of the namespaces.

None.

NamespaceId

String

The namespace ID.

None.

NamespaceName

String

The namespace name.

None.

Type

Integer

The namespace type.

Valid values:

  • 1: default namespace

  • 2: custom namespace

Quota

Integer

The maximum number of configurations.

None.

ConfigCount

Integer

The number of configurations.

None.

Examples

  • JSON format

    {
      "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 format

    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