DATASOURCE::ECS::KeyPair
更新時(shí)間:
DATASOURCE::ECS::KeyPair類型用于查詢一個(gè)密鑰對(duì)詳情。
語(yǔ)法
{
"Type": "DATASOURCE::ECS::KeyPair",
"Properties": {
"KeyPairName": String,
"RefreshOptions": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
KeyPairName | String | 是 | 是 | 密鑰對(duì)名稱。 | 無(wú) |
RefreshOptions | String | 否 | 是 | 當(dāng)資源棧更新時(shí),數(shù)據(jù)源資源的刷新策略。 | 有效值:
|
返回值
Fn::GetAtt
KeyPairName:密鑰對(duì)名稱。
ResourceGroupId:資源組ID。
CreateTime:密鑰對(duì)創(chuàng)建時(shí)間。
FingerPrint:密鑰對(duì)的指紋。
Tags:密鑰對(duì)綁定的標(biāo)簽。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
KeyPairName:
Type: String
Description:
en: |-
The name of the key pair. You can use the asterisk (*) symbol as a wildcard in regular expressions to perform a fuzzy search for key pairs. Sample patterns:
- *SshKey: queries key pairs whose names end with SshKey, including the key pair named SshKey.
- SshKey*: queries key pairs whose names start with SshKey, including the key pair named SshKey.
- *SshKey*: queries key pairs whose names include SshKey, including the key pair named SshKey.
- SshKey: queries the key pair named SshKey.
Required: true
AssociationProperty: ALIYUN::ECS::KeyPair::KeyPairName
Resources:
ExtensionDataSource:
Type: DATASOURCE::ECS::KeyPair
Properties:
KeyPairName:
Ref: KeyPairName
Outputs:
KeyPairName:
Description: The name of the key pair.
Value:
Fn::GetAtt:
- ExtensionDataSource
- KeyPairName
ResourceGroupId:
Description: The ID of the resource group.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ResourceGroupId
CreateTime:
Description: The time when the key pair was created.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
FingerPrint:
Description: The fingerprint of the key pair.
Value:
Fn::GetAtt:
- ExtensionDataSource
- FingerPrint
Tags:
Description: The tags of the key pair.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Tags
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"KeyPairName": {
"Type": "String",
"Description": {
"en": "The name of the key pair. You can use the asterisk (*) symbol as a wildcard in regular expressions to perform a fuzzy search for key pairs. Sample patterns:\n- *SshKey: queries key pairs whose names end with SshKey, including the key pair named SshKey.\n- SshKey*: queries key pairs whose names start with SshKey, including the key pair named SshKey.\n- *SshKey*: queries key pairs whose names include SshKey, including the key pair named SshKey.\n- SshKey: queries the key pair named SshKey."
},
"Required": true,
"AssociationProperty": "ALIYUN::ECS::KeyPair::KeyPairName"
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::ECS::KeyPair",
"Properties": {
"KeyPairName": {
"Ref": "KeyPairName"
}
}
}
},
"Outputs": {
"KeyPairName": {
"Description": "The name of the key pair.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"KeyPairName"
]
}
},
"ResourceGroupId": {
"Description": "The ID of the resource group.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ResourceGroupId"
]
}
},
"CreateTime": {
"Description": "The time when the key pair was created.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"FingerPrint": {
"Description": "The fingerprint of the key pair.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"FingerPrint"
]
}
},
"Tags": {
"Description": "The tags of the key pair.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Tags"
]
}
}
}
}
文檔內(nèi)容是否對(duì)您有幫助?