すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:DATASOURCE::RDS::Zones

最終更新日:Jan 16, 2025

DATASOURCE::RDS::Zonesは、ApsaraDB RDSインスタンスのゾーンをクエリするために使用されます。

構文

{
  "Type": "DATASOURCE::RDS::Zones",
  "Properties": {
    "DispenseMode": String,
    "Category": String,
    "EngineVersion": String,
    "ZoneId": String,
    "CommodityCode": String,
    "Engine": String,
    "RefreshOptions": String
  }
}

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

DispenseMode

String

いいえ

はい

シングルゾーンデプロイ方式がサポートされているゾーンを返すかどうかを指定します。

有効な値:

  • 1:シングルゾーンデプロイ方式がサポートされているゾーンを返します。

  • 0:シングルゾーンデプロイ方式がサポートされているゾーンを返しません。

説明

シングルゾーンデプロイ方式では、RDS Enterprise Editionを実行するインスタンスを単一のゾーンにデプロイできます。

Category

String

いいえ

はい

インスタンスのエディション。

有効な値:

  • Basic:RDS Basic Edition

  • HighAvailability:RDS High-availability Edition

  • AlwaysOn:RDS Cluster Edition

  • Finance:RDS Enterprise Edition

EngineVersion

String

いいえ

はい

データベースエンジンのバージョン。

  • Engine が MySQL に設定されている場合の有効な値:5.5、5.6、5.7、および 8.0。

  • Engine が SQLServer に設定されている場合の有効な値:2008r2、08r2_ent_ha、2012、2012_ent_ha、2012_std_ha、2012_web、2014_std_ha、2016_ent_ha、2016_std_ha、2016_web、2017_std_ha、2017_ent、2019_std_ha、および 2019_ent。

  • Engine が PostgreSQL に設定されている場合の有効な値:9.4、10.0、11.0、12.0、13.0、および 14.0。

  • Engine が MariaDB に設定されている場合の有効な値:10.3。

ZoneId

String

いいえ

はい

ゾーン ID。

インスタンスが複数のゾーンに存在する場合、このプロパティの値には cn-hangzhou-MAZ6(b,f)cn-hangzhou-MAZ5(b,e,f) などの MAZ 部分が含まれます。DescribeRegions オペレーションを呼び出して、ゾーン ID をクエリできます。

CommodityCode

String

いいえ

はい

インスタンスの商品コード。

有効な値:

  • bards_intl:インスタンスは従量課金制のプライマリインスタンスです。

  • rds_intl:インスタンスはサブスクリプションのプライマリインスタンスです。

  • rords_intl:インスタンスは従量課金制の読み取り専用インスタンスです。

  • rds_rordspre_public_intl:インスタンスはサブスクリプションの読み取り専用インスタンスです。

Engine

String

はい

はい

データベースエンジンのタイプ。

有効な値:

  • MySQL

  • SQLServer

  • PostgreSQL

  • MariaDB

RefreshOptions

String

いいえ

はい

スタックの更新時のデータソースリソースの更新ポリシー。

有効な値:

  • Never(デフォルト):スタックの更新時にデータソースリソースを更新しません。

  • Always:スタックの更新時にデータソースリソースを更新します。

戻り値 (Fn::GetAtt)

  • ZoneIds:ゾーンの ID。

  • Zones:ゾーンの詳細。

プロパティ

タイプ

説明

制約

ZoneIds

List

ゾーンの ID。

なし。

Zones

List

ゾーンの詳細。

なし。

ZoneId

String

ゾーン ID。

なし。

RegionId

String

リージョン ID。

なし。

SupportedEngines

List

購入可能なデータベースエンジンのバージョン。

例:

[ {  "SupportedEngineVersions" : [ {    "Version" : "8.0",    "SupportedCategorys" : [ {      "Category" : "HighAvailability",      "SupportedStorageTypes" : [ {        "StorageType" : "local_ssd"      }, {        "StorageType" : "cloud_ssd"      } ]    }, {      "Category" : "Basic",      "SupportedStorageTypes" : [ {        "StorageType" : "cloud_ssd"      } ]    } ]  } ],  "Engine" : "MySQL"} ]

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Engine": {
      "Type": "String",
      "Description": "インスタンスによって実行されるデータベースエンジン。", // Translated comment
      "AllowedValues": [
        "MySQL",
        "SQLServer",
        "PostgreSQL",
        "MariaDB"
      ]
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::RDS::Zones",
      "Properties": {
        "Engine": {
          "Ref": "Engine"
        }
      }
    }
  },
  "Outputs": {
    "ZoneIds": {
      "Description": "ゾーン ID のリスト。", // Translated comment
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ZoneIds"
        ]
      }
    },
    "Zones": {
      "Description": "ゾーンのリスト。", // Translated comment
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Zones"
        ]
      }
    }
  }
}
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Engine:
    Type: String
    Description: インスタンスによって実行されるデータベースエンジン。 # Translated comment
    AllowedValues:
      - MySQL
      - SQLServer
      - PostgreSQL
      - MariaDB
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::RDS::Zones
    Properties:
      Engine:
        Ref: Engine
Outputs:
  ZoneIds:
    Description: ゾーン ID のリスト。 # Translated comment
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ZoneIds
  Zones:
    Description: ゾーンのリスト。 # Translated comment
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Zones