全部产品
Search
文档中心

资源编排:ALIYUN::ALB::AdditionalCertificateAssociation

更新时间:Jun 13, 2024

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"
        ]
      }
    }
  }
}