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

Resource Orchestration Service:ALIYUN::KMS::Instance

最終更新日:Mar 17, 2025

ALIYUN::KMS::Instance は、Key Management Service (KMS) インスタンスを作成するために使用されます。

構文

{
  "Type": "ALIYUN::KMS::Instance",
  "Properties": {
    "ProductVersion": String,
    "Connection": Map,
    "InstanceChargeType": String,
    "KeyNum": Integer,
    "Log": Boolean,
    "LogStorage": Integer,
    "Period": Integer,
    "PeriodUnit": String,
    "RenewPeriod": Integer,
    "RenewStatus": String,
    "SecretNum": Integer,
    "Spec": Integer,
    "VpcNum": Integer
  }
}

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

ProductVersion

String

はい

いいえ

インスタンスのカテゴリ。

有効な値:

  • software: ソフトウェアキー管理

  • hardware: ハードウェアキー管理

  • software-small: ベーシックソフトウェアキー管理

  • hardware-small: ベーシックハードウェアキー管理

Connection

Map

いいえ

いいえ

インスタンスのネットワーク接続構成。

詳細については、「接続プロパティ」をご参照ください。

InstanceChargeType

String

いいえ

いいえ

インスタンスの課金方法。

デフォルト値である Subscription に設定します。

KeyNum

Integer

いいえ

はい

インスタンスに作成できるキーの数。

有効な値: 100 ~ 100000。

説明

InstanceChargeType を Subscription に設定する場合は、このプロパティを指定する必要があります。

Log

Boolean

いいえ

はい

ログ分析機能を有効にするかどうかを指定します。

有効な値:

  • true

  • false

LogStorage

Integer

いいえ

はい

インスタンスに関連付ける Logstore の数。

有効な値: 1000 ~ 500000。

Period

Integer

いいえ

いいえ

サブスクリプション期間。

  • PeriodUnit が Year に設定されている場合の有効な値: 1 ~ 3。

  • PeriodUnit が Month に設定されている場合の有効な値: 1、2、3、6、12、24、および 36。

PeriodUnit

String

いいえ

いいえ

サブスクリプション期間の単位。

有効な値:

  • Month

  • Year

RenewPeriod

Integer

いいえ

いいえ

自動更新期間。

RenewStatus を AutoRenewal に設定する場合は、このプロパティを指定する必要があります。

単位: 月。

RenewStatus

String

いいえ

いいえ

自動更新ステータス。

有効な値:

  • AutoRenewal

  • ManualRenewal (デフォルト)

SecretNum

Integer

いいえ

はい

インスタンスに作成できる資格情報の数。

有効な値: 0 ~ 100000。

説明

InstanceChargeType を Subscription に設定する場合は、このプロパティを指定する必要があります。

Spec

Integer

いいえ

はい

インスタンスのコンピューティングパフォーマンス。 クエリ/秒 (QPS) で測定されます。

有効な値:

  • 200

  • 1000

  • 2000

  • 4000

VpcNum

Integer

いいえ

はい

インスタンスのアクセス管理クォータの合計。

有効な値: 1 ~ 1000。

説明

InstanceChargeType を Subscription に設定する場合は、このプロパティを指定する必要があります。

接続構文

"Connection": {
  "VpcId": String,
  "VSwitchIds": List,
  "ZoneIds": List
}

接続プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

VpcId

String

はい

いいえ

インスタンスに関連付ける 仮想プライベートクラウド (VPC) の ID。

なし。

VSwitchIds

List

はい

いいえ

インスタンスの vSwitch。

最大 1 つの vSwitch を指定できます。

ZoneIds

List

はい

いいえ

インスタンスのゾーン。

最大 2 つのゾーンを指定できます。

戻り値

Fn::GetAtt

InstanceId: インスタンス ID。

YAML 形式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ProductVersion:
    Type: String
    Description:
      en: KMS Instance commodity type (software/software-small/hardware/hardware-small).
    AllowedValues:
      - software
      - software-small
      - hardware
      - hardware-small
    Required: true
Resources:
  Instance:
    Type: ALIYUN::KMS::Instance
    Properties:
      ProductVersion:
        Ref: ProductVersion
Outputs:
  InstanceId:
    Description: The ID of the instance.
    Value:
      Fn::GetAtt:
        - Instance
        - InstanceId
                        

JSON 形式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ProductVersion": {
      "Type": "String",
      "Description": {
        "en": "KMS インスタンス商品タイプ (software/software-small/hardware/hardware-small)."
      },
      "AllowedValues": [
        "software",
        "software-small",
        "hardware",
        "hardware-small"
      ],
      "Required": true
    }
  },
  "Resources": {
    "Instance": {
      "Type": "ALIYUN::KMS::Instance",
      "Properties": {
        "ProductVersion": {
          "Ref": "ProductVersion"
        }
      }
    }
  },
  "Outputs": {
    "InstanceId": {
      "Description": "インスタンスの ID。",
      "Value": {
        "Fn::GetAtt": [
          "Instance",
          "InstanceId"
        ]
      }
    }
  }
}