ALIYUN::ALB::AdditionalCertificateAssociation類型用於將擴充認證關聯到監聽。
文法
{
"Type": "ALIYUN::ALB::AdditionalCertificateAssociation",
"Properties": {
"Certificates": List,
"ListenerId": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
Certificates | List | 是 | 是 | 擴充認證列表。 | 最多支援25個認證。更多資訊,請參見Certificates屬性。 |
ListenerId | String | 是 | 否 | 監聽ID。 | HTTPS和QUIC監聽有效。 |
Certificates文法
"Certificates": [
{
"CertificateId": String
}
]
Certificates屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
CertificateId | String | 是 | 否 | 認證ID。 | 當前僅支援伺服器憑證。 |
傳回值
Fn::GetAtt
ListenerId:監聽ID。
樣本
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Certificates:
Type: Json
Description: The list of the additional certificates.
MinLength: 1
MaxLength: 25
Default:
- '***'
ListenerId:
Type: String
Description: The ID of the listener.
Default: '***'
Resources:
AdditionalCertificateAssociation:
Type: ALIYUN::ALB::AdditionalCertificateAssociation
Properties:
Certificates:
Ref: Certificates
ListenerId:
Ref: ListenerId
Outputs:
ListenerId:
Description: The ID of the listener.
Value:
Fn::GetAtt:
- AdditionalCertificateAssociation
- ListenerId
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Certificates": {
"Type": "Json",
"Description": "The list of the additional certificates.",
"MinLength": 1,
"MaxLength": 25,
"Default": ["***"]
},
"ListenerId": {
"Type": "String",
"Description": "The ID of the listener.",
"Default": "***"
}
},
"Resources": {
"AdditionalCertificateAssociation": {
"Type": "ALIYUN::ALB::AdditionalCertificateAssociation",
"Properties": {
"Certificates": {
"Ref": "Certificates"
},
"ListenerId": {
"Ref": "ListenerId"
}
}
}
},
"Outputs": {
"ListenerId": {
"Description": "The ID of the listener.",
"Value": {
"Fn::GetAtt": [
"AdditionalCertificateAssociation",
"ListenerId"
]
}
}
}
}