DATASOURCE::CloudPhone::KeyPairs類型用於查詢金鑰組資訊。
文法
{
"Type": "DATASOURCE::CloudPhone::KeyPairs",
"Properties": {
"KeyPairFingerPrint": String,
"KeyPairName": String,
"RefreshOptions": String
}
}屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
KeyPairFingerPrint | String | 否 | 是 | 金鑰組的指紋。 | 根據RFC4716定義的公開金鑰指紋格式,採用MD5資訊摘要演算法。 |
KeyPairName | String | 否 | 是 | 金鑰組的名稱。 | 無 |
RefreshOptions | String | 否 | 是 | 當資源棧更新時,資料來源資源的重新整理策略。 | 有效值:
|
傳回值
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
- KeyPairsJSON格式
{
"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"
]
}
}
}
}