ALIYUN::VPC::SslVpnClientCert類(lèi)型用于調(diào)用CreateSslVpnClientCert接口創(chuàng)建SSL-VPN客戶(hù)端證書(shū)。
語(yǔ)法
{
"Type": "ALIYUN::VPC::SslVpnClientCert",
"Properties": {
"Name": String,
"SslVpnServerId": String
}
}
屬性
屬性名稱(chēng) | 類(lèi)型 | 必須 | 允許更新 | 描述 | 約束 |
---|---|---|---|---|---|
Name | String | 否 | 是 | 客戶(hù)端證書(shū)的名稱(chēng)。長(zhǎng)度為2-128個(gè)字符,必須以字母或中文開(kāi)頭,可包含數(shù)字,點(diǎn)號(hào)(.),下劃線(_)和短橫線(-)。但不能以http://或https://開(kāi)頭。 | 無(wú)。 |
SslVpnServerId | String | 是 | 否 | SSL-VPN服務(wù)端的ID。 | 無(wú)。 |
返回值
Fn::GetAtt
- SslVpnClientCertId: 客戶(hù)端證書(shū)的ID。
示例
{
"ROSTemplateFormatVersion": "2015-09-01",
"Resources": {
"SslVpnClientCert": {
"Type": "ALIYUN::VPC::SslVpnClientCert",
"Properties": {
"Name": {
"Ref": "Name"
},
"SslVpnServerId": {
"Ref": "SslVpnServerId"
}
}
}
},
"Parameters": {
"Name": {
"MinLength": 2,
"Type": "String",
"Description": "The name of the client certificate.\nThe length is 2-128 characters and must start with a letter or Chinese. It can contain numbers, periods (.), underscores (_), and dashes (-). But it can't start with http:// or https://.",
"MaxLength": 128
},
"SslVpnServerId": {
"Type": "String",
"Description": "ID of the SSL-VPN server."
}
},
"Outputs": {
"SslVpnClientCertId": {
"Description": "The ID of the client certificate.",
"Value": {
"Fn::GetAtt": [
"SslVpnClientCert",
"SslVpnClientCertId"
]
}
}
}
}