edit-icon download-icon

ALIYUN::ApiGateway::SignatureBinding

Last Updated: Jun 13, 2018

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

Syntax

  1. {
  2. "Type" : "ALIYUN::ApiGateway::SignatureBinding",
  3. "Properties" : {
  4. "ApiIds" : List,
  5. "GroupId" : String,
  6. "StageName" : String,
  7. "SignatureId" : String
  8. }
  9. }

Attributes

Attribute name Type Required Update allowed Description
ApiIds list Yes Yes Specify the API IDs. You can enter up to 100 API IDs
GroupId string Yes Yes Specify the API group ID
StageName string Yes Yes Specify the API running stage. Values: TEST, PRE, or RELEASE
SignatureId string Yes Yes Specify the signature ID to be bound

Example

  1. {
  2. "ROSTemplateFormatVersion": "2015-09-01",
  3. "Parameters": {
  4. "ApiIds": {
  5. "Type": "String",
  6. "Description": "API ID"
  7. },
  8. "GroupId": {
  9. "Type": "String"
  10. },
  11. },
  12. "Resources": {
  13. "Signature": {
  14. "Type": "ALIYUN::ApiGateway::Signature",
  15. "Properties": {
  16. "SignatureName": "ros_test_11",
  17. "SignatureKey": "demo_test_key",
  18. "SignatureSecret": "demo_test_secret"
  19. }
  20. },
  21. "SignatureBinding": {
  22. "Type": "ALIYUN::ApiGateway::SignatureBinding",
  23. "Properties": {
  24. "GroupId": {
  25. "Ref": "GroupId"
  26. },
  27. "SignatureId": {
  28. "Ref": "Signature"
  29. },
  30. "ApiIds": [{
  31. "Ref": "ApiIds"
  32. }],
  33. "StageName": "PRE"
  34. }
  35. }
  36. }
  37. }
Thank you! We've received your feedback.