{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/AwsAccountId",
  "/properties/VPCConnectionId"
 ],
 "definitions": {
  "NetworkInterface": {
   "additionalProperties": false,
   "properties": {
    "AvailabilityZone": {
     "type": "string"
    },
    "ErrorMessage": {
     "type": "string"
    },
    "NetworkInterfaceId": {
     "maxLength": 255,
     "minLength": 0,
     "pattern": "^eni-[0-9a-z]*$",
     "type": "string"
    },
    "Status": {
     "$ref": "#/definitions/NetworkInterfaceStatus"
    },
    "SubnetId": {
     "format": "AWS::EC2::Subnet.Id",
     "maxLength": 255,
     "minLength": 1,
     "pattern": "^subnet-[0-9a-z]*$",
     "type": "string"
    }
   },
   "type": "object"
  },
  "NetworkInterfaceStatus": {
   "enum": [
    "CREATING",
    "AVAILABLE",
    "CREATION_FAILED",
    "UPDATING",
    "UPDATE_FAILED",
    "DELETING",
    "DELETED",
    "DELETION_FAILED",
    "DELETION_SCHEDULED",
    "ATTACHMENT_FAILED_ROLLBACK_FAILED"
   ],
   "type": "string"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 1,
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  },
  "VPCConnectionAvailabilityStatus": {
   "enum": [
    "AVAILABLE",
    "UNAVAILABLE",
    "PARTIALLY_AVAILABLE"
   ],
   "type": "string"
  },
  "VPCConnectionResourceStatus": {
   "enum": [
    "CREATION_IN_PROGRESS",
    "CREATION_SUCCESSFUL",
    "CREATION_FAILED",
    "UPDATE_IN_PROGRESS",
    "UPDATE_SUCCESSFUL",
    "UPDATE_FAILED",
    "DELETION_IN_PROGRESS",
    "DELETION_FAILED",
    "DELETED"
   ],
   "type": "string"
  }
 },
 "primaryIdentifier": [
  "/properties/AwsAccountId",
  "/properties/VPCConnectionId"
 ],
 "properties": {
  "Arn": {
   "type": "string"
  },
  "AvailabilityStatus": {
   "$ref": "#/definitions/VPCConnectionAvailabilityStatus"
  },
  "AwsAccountId": {
   "maxLength": 12,
   "minLength": 12,
   "pattern": "^[0-9]{12}$",
   "type": "string"
  },
  "CreatedTime": {
   "format": "date-time",
   "type": "string"
  },
  "DnsResolvers": {
   "insertionOrder": false,
   "items": {
    "maxLength": 15,
    "minLength": 7,
    "type": "string"
   },
   "maxItems": 15,
   "minItems": 0,
   "type": "array"
  },
  "LastUpdatedTime": {
   "format": "date-time",
   "type": "string"
  },
  "Name": {
   "maxLength": 128,
   "minLength": 1,
   "type": "string"
  },
  "NetworkInterfaces": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/NetworkInterface"
   },
   "maxItems": 15,
   "minItems": 0,
   "type": "array"
  },
  "RoleArn": {
   "format": "AWS::IAM::Role.Arn",
   "maxLength": 2048,
   "minLength": 20,
   "type": "string"
  },
  "SecurityGroupIds": {
   "format": "AWS::EC2::SecurityGroup.Ids",
   "insertionOrder": false,
   "items": {
    "format": "AWS::EC2::SecurityGroup.Id",
    "maxLength": 255,
    "minLength": 1,
    "pattern": "^sg-[0-9a-z]*$",
    "type": "string"
   },
   "maxItems": 16,
   "minItems": 1,
   "type": "array"
  },
  "Status": {
   "$ref": "#/definitions/VPCConnectionResourceStatus"
  },
  "SubnetIds": {
   "insertionOrder": false,
   "items": {
    "maxLength": 255,
    "minLength": 1,
    "pattern": "^subnet-[0-9a-z]*$",
    "type": "string"
   },
   "maxItems": 15,
   "minItems": 2,
   "type": "array"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 200,
   "minItems": 1,
   "type": "array"
  },
  "VPCConnectionId": {
   "maxLength": 1000,
   "minLength": 1,
   "pattern": "[\\w\\-]+",
   "type": "string"
  },
  "VPCId": {
   "format": "AWS::EC2::VPC.Id",
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/Arn",
  "/properties/CreatedTime",
  "/properties/LastUpdatedTime",
  "/properties/NetworkInterfaces",
  "/properties/Status",
  "/properties/VPCId"
 ],
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::QuickSight::VPCConnection",
 "writeOnlyProperties": [
  "/properties/SubnetIds"
 ]
}
