全部產品
Search
文件中心

:ALIYUN::CAS::Certificate

更新時間:Jun 25, 2024

ALIYUN::CAS::Certificate類型用於添加認證。

文法

{
  "Type": "ALIYUN::CAS::Certificate",
  "Properties": {
    "Lang": String,
    "Cert": String,
    "SourceIp": String,
    "Name": String,
    "Key": String
  }
}

屬性

屬性名稱

類型

必須

允許更新

描述

約束

Cert

String

指定認證內容。要使用PEM編碼格式。

無。

Key

String

指定認證私密金鑰內容。要使用PEM編碼格式。

無。

Name

String

自訂認證名稱。一個使用者下的認證名稱不能重複。

無。

Lang

String

指定請求和接收訊息的語言類型。

無。

SourceIp

String

指定請求的來源IP地址。

無。

傳回值

Fn::GetAtt

  • CertId: 認證ID。

樣本

YAML格式

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格式

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