全部產品
Search
文件中心

Resource Orchestration Service:DATASOURCE::CloudPhone::KeyPairs

更新時間:Dec 28, 2024

DATASOURCE::CloudPhone::KeyPairs類型用於查詢金鑰組資訊。

文法

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

屬性

屬性名稱

類型

必須

允許更新

描述

約束

KeyPairFingerPrint

String

金鑰組的指紋。

根據RFC4716定義的公開金鑰指紋格式,採用MD5資訊摘要演算法。

KeyPairName

String

金鑰組的名稱。

RefreshOptions

String

當資源棧更新時,資料來源資源的重新整理策略。

有效值:

  • Never(預設值):更新堆棧時,從不重新整理資料來源資源。

  • Always:更新堆棧時,始終重新整理資料來源資源。

傳回值

Fn::GetAtt

  • KeyPairs:金鑰組詳細資料列表。

  • KeyPairNames:金鑰組的名稱列表。

屬性名稱

類型

描述

約束

KeyPairNames

List

金鑰組的名稱列表。

KeyPairs

List

金鑰組詳細資料列表。

KeyPairFingerPrint

String

金鑰組的指紋。

CreateTime

String

金鑰組的建立時間。

KeyPairName

String

金鑰組的名稱。

樣本

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  KeyPairName:
    Description: The Key Name.
    Type: String
Resources:
  ExtensionDataSource:
    Properties:
      KeyPairName:
        Ref: KeyPairName
    Type: DATASOURCE::CloudPhone::KeyPairs
Outputs:
  KeyPairNames:
    Description: The list of key pair names.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - KeyPairNames
  KeyPairs:
    Description: The list of key pairs.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - KeyPairs

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "KeyPairName": {
      "Type": "String",
      "Description": "The Key Name."
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::CloudPhone::KeyPairs",
      "Properties": {
        "KeyPairName": {
          "Ref": "KeyPairName"
        }
      }
    }
  },
  "Outputs": {
    "KeyPairs": {
      "Description": "The list of key pairs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "KeyPairs"
        ]
      }
    },
    "KeyPairNames": {
      "Description": "The list of key pair names.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "KeyPairNames"
        ]
      }
    }
  }
}