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

Resource Orchestration Service:DATASOURCE::CloudPhone::KeyPair

最終更新日:Mar 17, 2025

DATASOURCE::CloudPhone::KeyPair は、キーペアに関する情報をクエリするために使用されます。

構文

{
  "Type": "DATASOURCE::CloudPhone::KeyPair",
  "Properties": {
    "KeyPairName": String,
    "RefreshOptions": String
  }
}

プロパティ

プロパティ

必須

編集可能

説明

制約

KeyPairName

String

はい

はい

キーペアの名前。

なし。

RefreshOptions

String

いいえ

はい

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

有効な値:

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

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

戻り値

Fn::GetAtt

  • KeyPairFingerPrint:キーペアのフィンガープリント。

  • KeyPairName:キーペアの名前。

  • CreateTime:キーペアが作成された時刻。

YAML 形式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  KeyPairName:
    Description:
      en: The Key Name.
    Required: true
    Type: String
Resources:
  ExtensionDataSource:
    Properties:
      KeyPairName:
        Ref: KeyPairName
    Type: DATASOURCE::CloudPhone::KeyPair
Outputs:
  CreateTime:
    Description: The creation time of the resource.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - CreateTime
  KeyPairFingerPrint:
    Description: The Private Key of the Fingerprint.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - KeyPairFingerPrint
  KeyPairName:
    Description: The Key Name.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - KeyPairName
                        

JSON 形式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "KeyPairName": {
      "Type": "String",
      "Description": {
        "en": "The Key Name."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::CloudPhone::KeyPair",
      "Properties": {
        "KeyPairName": {
          "Ref": "KeyPairName"
        }
      }
    }
  },
  "Outputs": {
    "KeyPairFingerPrint": {
      "Description": "The Private Key of the Fingerprint.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "KeyPairFingerPrint"
        ]
      }
    },
    "KeyPairName": {
      "Description": "The Key Name.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "KeyPairName"
        ]
      }
    },
    "CreateTime": {
      "Description": "The creation time of the resource.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    }
  }
}