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"
]
}
}
}
}
文档内容是否对您有帮助?