全部產品
Search
文件中心

Resource Orchestration Service:ALIYUN::ALB::AdditionalCertificateAssociation

更新時間:Jun 19, 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"
        ]
      }
    }
  }
}