All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::ACM::Configurations

Last Updated:Nov 01, 2024

DATASOURCE::ACM::Configurations is used to query the information about configurations.

Syntax

{
  "Type": "DATASOURCE::ACM::Configurations",
  "Properties": {
    "Group": String,
    "DataId": String,
    "NamespaceId": String,
    "AppName": String,
    "RefreshOptions": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

Group

String

No

Yes

The group.

None.

DataId

String

No

Yes

The configuration ID.

None.

NamespaceId

String

Yes

Yes

The namespace ID.

None.

AppName

String

No

Yes

The name of the application to which the configuration belongs.

None.

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)

  • DataIds: the IDs of the configurations.

  • Configurations: details of the configurations.

Property

Type

Description

Constraint

DataIds

List

The IDs of the configurations.

None.

Configurations

List

Details of the configurations.

None.

DataId

String

The configuration ID.

None.

Group

String

The group.

None.

EncryptedDataKey

String

The data key.

None.

Content

String

The content of the configuration.

None.

NamespaceId

String

The namespace ID.

None.

AppName

String

The name of the application to which the configuration belongs.

None.

Md5

String

The message digest of the configuration.

None.

Examples

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "NamespaceId": {
      "Type": "String",
      "Description": "The namespace ID of configuration"
    }
  },
  "Resources": {
    "Configurations": {
      "Type": "DATASOURCE::ACM::Configurations",
      "Properties": {
        "NamespaceId": {
          "Ref": "NamespaceId"
        }
      }
    }
  },
  "Outputs": {
    "DataIds": {
      "Description": "The list of configuration data IDs.",
      "Value": {
        "Fn::GetAtt": [
          "Configurations",
          "DataIds"
        ]
      }
    },
    "Configurations": {
      "Description": "The list of configurations.",
      "Value": {
        "Fn::GetAtt": [
          "Configurations",
          "Configurations"
        ]
      }
    }
  }
}