{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-rds-dbproxytargetgroup.json",
  "title": "AWSRDSDBProxyTargetGroupProperties",
  "description": "Resource schema for AWS::RDS::DBProxyTargetGroup. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-rds-proxy>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-rds-dbproxytargetgroup.json",
    "sourceSha256": "bad63d9fb498b32c14329f12bd31feba2c28c4ca6bcf66d3e58a921678c94288"
  },
  "type": "object",
  "properties": {
    "DBProxyName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "[A-z][0-z]*",
          "maxLength": 64
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The identifier for the proxy."
    },
    "TargetGroupName": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "default"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The identifier for the DBProxyTargetGroup"
    },
    "ConnectionPoolConfigurationInfo": {
      "$ref": "#/$defs/ConnectionPoolConfigurationInfoFormat"
    },
    "DBInstanceIdentifiers": {
      "type": "array",
      "insertionOrder": false,
      "items": {
        "type": "string"
      }
    },
    "DBClusterIdentifiers": {
      "type": "array",
      "insertionOrder": false,
      "items": {
        "type": "string"
      }
    }
  },
  "typeName": "AWS::RDS::DBProxyTargetGroup",
  "primaryIdentifier": [
    "/properties/TargetGroupArn"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-rds-proxy",
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/DBProxyName",
    "/properties/TargetGroupName"
  ],
  "$defs": {
    "ConnectionPoolConfigurationInfoFormat": {
      "type": "object",
      "properties": {
        "MaxConnectionsPercent": {
          "description": "The maximum size of the connection pool for each target in a target group.",
          "type": "integer",
          "minimum": 0,
          "maximum": 100
        },
        "MaxIdleConnectionsPercent": {
          "description": "Controls how actively the proxy closes idle database connections in the connection pool.",
          "type": "integer",
          "minimum": 0,
          "maximum": 100
        },
        "ConnectionBorrowTimeout": {
          "description": "The number of seconds for a proxy to wait for a connection to become available in the connection pool.",
          "type": "integer"
        },
        "SessionPinningFilters": {
          "description": "Each item in the list represents a class of SQL operations that normally cause all later statements in a session using a proxy to be pinned to the same underlying database connection.",
          "type": "array",
          "insertionOrder": false,
          "items": {
            "type": "string"
          }
        },
        "InitQuery": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "One or more SQL statements for the proxy to run when opening each new database connection."
        }
      },
      "title": "AWSRDSDBProxyTargetGroupConnectionPoolConfigurationInfoFormatDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "DBProxyName",
    "TargetGroupName"
  ],
  "readOnlyProperties": [
    "/properties/TargetGroupArn"
  ]
}
