{
  "typeName" : "AWS::EC2::CustomerGateway",
  "description" : "Resource Type definition for AWS::EC2::CustomerGateway",
  "additionalProperties" : false,
  "properties" : {
    "CustomerGatewayId" : {
      "type" : "string",
      "description" : "CustomerGateway ID generated after customer gateway is created. Each customer gateway has a unique ID."
    },
    "BgpAsn" : {
      "type" : "integer",
      "default" : 65000,
      "description" : "For devices that support BGP, the customer gateway's BGP ASN."
    },
    "IpAddress" : {
      "type" : "string",
      "description" : "The internet-routable IP address for the customer gateway's outside interface. The address must be static."
    },
    "Tags" : {
      "type" : "array",
      "uniqueItems" : false,
      "insertionOrder" : false,
      "items" : {
        "$ref" : "#/definitions/Tag"
      },
      "description" : "One or more tags for the customer gateway."
    },
    "Type" : {
      "type" : "string",
      "description" : "The type of VPN connection that this customer gateway supports."
    },
    "DeviceName" : {
      "type" : "string",
      "description" : "A name for the customer gateway device."
    }
  },
  "definitions" : {
    "Tag" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Key" : {
          "type" : "string"
        },
        "Value" : {
          "type" : "string"
        }
      },
      "required" : [ "Value", "Key" ]
    }
  },
  "required" : [ "BgpAsn", "IpAddress", "Type" ],
  "createOnlyProperties" : [ "/properties/BgpAsn", "/properties/Type", "/properties/IpAddress", "/properties/DeviceName" ],
  "readOnlyProperties" : [ "/properties/CustomerGatewayId" ],
  "primaryIdentifier" : [ "/properties/CustomerGatewayId" ],
  "tagging" : {
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "cloudFormationSystemTags" : true,
    "tagProperty" : "/properties/Tags"
  },
  "handlers" : {
    "create" : {
      "permissions" : [ "ec2:CreateCustomerGateway", "ec2:DescribeCustomerGateways" ]
    },
    "read" : {
      "permissions" : [ "ec2:DescribeCustomerGateways" ]
    },
    "update" : {
      "permissions" : [ "ec2:CreateTags", "ec2:DeleteTags" ]
    },
    "delete" : {
      "permissions" : [ "ec2:DeleteCustomerGateway", "ec2:DescribeCustomerGateways" ]
    },
    "list" : {
      "permissions" : [ "ec2:DescribeCustomerGateways" ]
    }
  }
}