ALIYUN::CAS::Certificate is used to add a certificate.
Syntax
{
"Type": "ALIYUN::CAS::Certificate",
"Properties": {
"Lang": String,
"Cert": String,
"SourceIp": String,
"Name": String,
"Key": String
}
}
Properties
Name | Type | Required | Editable | Description | Validity |
---|---|---|---|---|---|
Lang | String | No | No | The language type of the request and response. | None. |
Cert | String | Yes | No | The content of the certificate. The parameter value must be in the Privacy Enhanced Mail (PEM) format. | None. |
SourceIp | String | No | No | The source IP address of the request. | None. |
Name | String | Yes | No | The name of the certificate. The name must be unique in an Alibaba Cloud account. | None. |
Key | String | Yes | No | The private key of the certificate. The parameter value must be in the PEM format. | None. |
Response parameters
Fn::GetAtt
- CertId: the ID of the certificate.
Examples
{
"ROSTemplateFormatVersion": "2015-09-01",
"Resources": {
"Certificate": {
"Type": "ALIYUN::CAS::Certificate",
"Properties": {
"Lang": {
"Ref": "Lang"
},
"Cert": {
"Ref": "Cert"
},
"SourceIp": {
"Ref": "SourceIp"
},
"Name": {
"Ref": "Name"
},
"Key": {
"Ref": "Key"
}
}
}
},
"Parameters": {
"Lang": {
"Type": "String",
"Description": "Specifies the language type for requesting and receiving messages."
},
"Cert": {
"Type": "String",
"Description": "Specify the content of the certificate. To use the PEM encoding format."
},
"SourceIp": {
"Type": "String",
"Description": "Specifies the source IP address of the request."
},
"Name": {
"Type": "String",
"Description": "Custom certificate name. The certificate name under a user cannot be duplicated."
},
"Key": {
"Type": "String",
"Description": "Specify the certificate private key content. To use the PEM encoding format."
}
},
"Outputs": {
"CertId": {
"Description": "Certificate ID.",
"Value": {
"Fn::GetAtt": [
"Certificate",
"CertId"
]
}
}
}
}