Adds a certificate to Certificate Management Service (CAS).
Syntax
{
"Type": "ALIYUN::CAS::Certificate",
"Properties": {
"Lang": String,
"Cert": String,
"SourceIp": String,
"Name": String,
"Key": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
Cert |
String |
Yes |
No |
The certificate content. The value must be encoded in Privacy Enhanced Mail (PEM) format. |
None. |
|
Key |
String |
Yes |
No |
The private key of the certificate. The value must be encoded in PEM format. |
None. |
|
Name |
String |
Yes |
No |
The certificate name. Must be unique within an account. |
None. |
|
Lang |
String |
No |
No |
The language of the request and response content. |
None. |
|
SourceIp |
String |
No |
No |
The source IP address of the request. |
None. |
Return values
Fn::GetAtt
-
CertId: the certificate ID.
Examples
YAML format
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
JSON format
{
"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"
]
}
}
}
}