{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/DBProxyName",
  "/properties/EngineFamily",
  "/properties/EndpointNetworkType",
  "/properties/TargetConnectionNetworkType",
  "/properties/VpcSubnetIds"
 ],
 "definitions": {
  "AuthFormat": {
   "additionalProperties": false,
   "properties": {
    "AuthScheme": {
     "enum": [
      "SECRETS"
     ],
     "type": "string"
    },
    "ClientPasswordAuthType": {
     "enum": [
      "MYSQL_NATIVE_PASSWORD",
      "MYSQL_CACHING_SHA2_PASSWORD",
      "POSTGRES_SCRAM_SHA_256",
      "POSTGRES_MD5",
      "SQL_SERVER_AUTHENTICATION"
     ],
     "type": "string"
    },
    "Description": {
     "maxLength": 1000,
     "minLength": 1,
     "type": "string"
    },
    "IAMAuth": {
     "enum": [
      "DISABLED",
      "REQUIRED",
      "ENABLED"
     ],
     "type": "string"
    },
    "SecretArn": {
     "maxLength": 2048,
     "minLength": 20,
     "type": "string"
    }
   },
   "type": "object"
  },
  "TagFormat": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "pattern": "(\\w|\\d|\\s|\\\\|-|\\.:=+-)*",
     "type": "string"
    },
    "Value": {
     "maxLength": 128,
     "pattern": "(\\w|\\d|\\s|\\\\|-|\\.:=+-)*",
     "type": "string"
    }
   },
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/DBProxyName"
 ],
 "properties": {
  "Auth": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/AuthFormat"
   },
   "maxItems": 200,
   "minItems": 1,
   "type": "array"
  },
  "DBProxyArn": {
   "type": "string"
  },
  "DBProxyName": {
   "maxLength": 64,
   "minLength": 1,
   "pattern": "[0-z]*",
   "type": "string"
  },
  "DebugLogging": {
   "type": "boolean"
  },
  "DefaultAuthScheme": {
   "enum": [
    "IAM_AUTH",
    "NONE"
   ],
   "type": "string"
  },
  "Endpoint": {
   "type": "string"
  },
  "EndpointNetworkType": {
   "enum": [
    "IPV4",
    "IPV6",
    "DUAL"
   ],
   "type": "string"
  },
  "EngineFamily": {
   "enum": [
    "MYSQL",
    "POSTGRESQL",
    "SQLSERVER"
   ],
   "type": "string"
  },
  "IdleClientTimeout": {
   "type": "integer"
  },
  "RequireTLS": {
   "type": "boolean"
  },
  "RoleArn": {
   "format": "AWS::IAM::Role.Arn",
   "maxLength": 2048,
   "minLength": 20,
   "type": "string"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/TagFormat"
   },
   "type": "array"
  },
  "TargetConnectionNetworkType": {
   "enum": [
    "IPV4",
    "IPV6"
   ],
   "type": "string"
  },
  "VpcId": {
   "format": "AWS::EC2::VPC.Id",
   "type": "string"
  },
  "VpcSecurityGroupIds": {
   "format": "AWS::EC2::SecurityGroup.Ids",
   "insertionOrder": false,
   "items": {
    "format": "AWS::EC2::SecurityGroup.Id",
    "type": "string"
   },
   "minItems": 1,
   "type": "array"
  },
  "VpcSubnetIds": {
   "insertionOrder": false,
   "items": {
    "type": "string"
   },
   "minItems": 2,
   "type": "array"
  }
 },
 "readOnlyProperties": [
  "/properties/DBProxyArn",
  "/properties/Endpoint",
  "/properties/VpcId"
 ],
 "required": [
  "DBProxyName",
  "EngineFamily",
  "RoleArn",
  "VpcSubnetIds"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::RDS::DBProxy"
}
