{
  "name": "GetIntegration",
  "plane": "control",
  "terraformEligible": true,
  "protocol": {
    "kind": "cloudJson",
    "target": "CloudGateway.GetIntegration",
    "service": "gateway"
  },
  "requestBody": "typed",
  "responseBody": "typed",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "properties": {
      "apiId": {
        "type": "string"
      },
      "integrationId": {
        "type": "string"
      }
    },
    "required": [
      "apiId",
      "integrationId"
    ],
    "title": "GetIntegrationRequest",
    "type": "object"
  },
  "responseSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
      "IntegrationType": {
        "enum": [
          "FUNCTION",
          "EVENTS_PUT",
          "CLOUD_SERVICE"
        ],
        "type": "string"
      },
      "InvocationMode": {
        "enum": [
          "REQUEST_RESPONSE",
          "EVENT"
        ],
        "type": "string"
      }
    },
    "properties": {
      "eventBusName": {
        "type": [
          "string",
          "null"
        ]
      },
      "functionName": {
        "type": [
          "string",
          "null"
        ]
      },
      "integrationId": {
        "type": "string"
      },
      "integrationType": {
        "$ref": "#/definitions/IntegrationType"
      },
      "invocationMode": {
        "$ref": "#/definitions/InvocationMode"
      }
    },
    "required": [
      "integrationId",
      "integrationType",
      "invocationMode"
    ],
    "title": "IntegrationDescription",
    "type": "object"
  }
}
