ALIYUN::ApiGateway::CustomDomain は、カスタムドメイン名をバインドし、指定された API グループの SSL 証明書をアップロードする場合に使用できます。
構文
{ “Type” : “ALIYUN::ApiGateway::CustomDomain”, “Properties” : { “CertificateBody” : String, “CertificateName” : String, “GroupId” : String, “CertificatePrivateKey” : String, “DomainName” : String }}
プロパティ
名前 | データ型 | 必須/省略可能 | 更新可/不可 | 説明 |
CertificateBody | String | 必須 | 可 | 証明書の本文 |
CertificateName | String | 必須 | 可 | SSL 証明書 |
GroupId | String | 必須 | 不可 | 一意およびシステム生成の API グループ ID |
CertificatePrivateKey | String | 必須 | 可 | 証明書の秘密鍵 |
DomainName | String | 必須 | 不可 | カスタムドメイン名 |
レスポンス値
Fn::GetAtt
CertificateId: 証明書 ID
コーディング例
{ “ROSTemplateFormatVersion”: “2015-09-01”, “Parameters”: { “GroupId”: { “Type”: “String”, “Description”: “API group ID” }, “CertificateBody”: { “Type”: “String” }, “CertificatePrivateKey”: { “Type”: “String” }, }, “Resources”: { “CustomDomain”: { “Type”: “ALIYUN::ApiGateway::CustomDomain”, “Properties”: { “GroupId”: { “Ref”: “GroupId” }, “DomainName”: “mytest.api.domain”, “CertificateName”: “demo_cert”, “CertificateBody”: { “Ref”: “CertificateBody” }, “CertificatePrivateKey”: { “Ref”: “CertificatePrivateKey” } } } }}
</article>
</main>