ALIYUN::ApiGateway::SignatureBinding is used to bind a backend signature to APIs.

Syntax

{
  "Type": "ALIYUN::ApiGateway::SignatureBinding",
  "Properties": {
    "ApiIds": List,
    "GroupId": String,
    "StageName": String,
    "SignatureId": String
  }
}

Properties

Name Type Required Editable Description
ApiIds list Yes Yes The IDs of APIs. A maximum of 100 IDs can be entered.
GroupId String Yes Yes The ID of the API group that contains the APIs to which you want to bind a backend signature.
StageName String Yes Yes The name of the runtime environment. Valid values: Valid values: TEST, PRE, and RELEASE.
SignatureId String Yes Yes The ID of the signature.

Response parameters

Fn::GetAtt

None

Examples

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ApiIds": {
      "Type": "String",
      "Description": "API ID"
    },
    "GroupId": {
      "Type": "String"
    },
  },
  "Resources": {
    "Signature": {
      "Type": "ALIYUN::ApiGateway::Signature",
      "Properties": {
        "SignatureName": "ros_test_11",
        "SignatureKey": "demo_test_key",
        "SignatureSecret": "demo_test_secret"
      }
    },
    "SignatureBinding": {
      "Type": "ALIYUN::ApiGateway::SignatureBinding",
      "Properties": {
        "GroupId": {
         "Ref": "GroupId"
        },
        "SignatureId": {
          "Ref": "Signature"
        },
        "ApiIds": [{
          "Ref": "ApiIds"
        }],
        "StageName": "PRE"
      }
    }
  }
}