{
  "name": "CreateEventSourceMapping",
  "plane": "control",
  "terraformEligible": false,
  "protocol": {
    "kind": "cloudJson",
    "target": "CloudFunctions.CreateEventSourceMapping",
    "service": "functions"
  },
  "requestBody": "typed",
  "responseBody": "typed",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "properties": {
      "enabled": {
        "default": null,
        "type": [
          "boolean",
          "null"
        ]
      },
      "eventSourceArn": {
        "type": "string"
      },
      "functionName": {
        "type": "string"
      }
    },
    "required": [
      "eventSourceArn",
      "functionName"
    ],
    "title": "CreateEventSourceMappingRequest",
    "type": "object"
  },
  "responseSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "properties": {
      "eventSourceArn": {
        "type": "string"
      },
      "functionArn": {
        "type": "string"
      },
      "state": {
        "type": "string"
      },
      "uuid": {
        "type": "string"
      }
    },
    "required": [
      "eventSourceArn",
      "functionArn",
      "state",
      "uuid"
    ],
    "title": "EventSourceMappingResponse",
    "type": "object"
  }
}
