{
  "typeName" : "AWS::Events::ApiDestination",
  "description" : "Resource Type definition for AWS::Events::ApiDestination.",
  "properties" : {
    "Name" : {
      "description" : "Name of the apiDestination.",
      "type" : "string",
      "minLength" : 1,
      "maxLength" : 64
    },
    "Description" : {
      "type" : "string",
      "maxLength" : 512
    },
    "ConnectionArn" : {
      "description" : "The arn of the connection.",
      "type" : "string"
    },
    "Arn" : {
      "description" : "The arn of the api destination.",
      "type" : "string"
    },
    "InvocationRateLimitPerSecond" : {
      "type" : "integer",
      "minimum" : 1
    },
    "InvocationEndpoint" : {
      "description" : "Url endpoint to invoke.",
      "type" : "string"
    },
    "HttpMethod" : {
      "type" : "string",
      "enum" : [ "GET", "HEAD", "POST", "OPTIONS", "PUT", "DELETE", "PATCH" ]
    }
  },
  "additionalProperties" : false,
  "createOnlyProperties" : [ "/properties/Name" ],
  "readOnlyProperties" : [ "/properties/Arn" ],
  "required" : [ "ConnectionArn", "InvocationEndpoint", "HttpMethod" ],
  "primaryIdentifier" : [ "/properties/Name" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "events:CreateApiDestination", "events:DescribeApiDestination" ]
    },
    "read" : {
      "permissions" : [ "events:DescribeApiDestination" ]
    },
    "update" : {
      "permissions" : [ "events:UpdateApiDestination", "events:DescribeApiDestination" ]
    },
    "delete" : {
      "permissions" : [ "events:DeleteApiDestination", "events:DescribeApiDestination" ]
    },
    "list" : {
      "permissions" : [ "events:ListApiDestinations" ]
    }
  }
}