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"
]
}
}
}
}
文檔內容是否對您有幫助?