{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-rds-dbproxyendpoint.json",
  "title": "AWSRDSDBProxyEndpointProperties",
  "description": "Resource schema for AWS::RDS::DBProxyEndpoint.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-rds-dbproxyendpoint.json",
    "sourceSha256": "aea53b01c75f4aebd0e291b7231f07ff68d2657b5b3f86c7c8364ca35bde8a8f"
  },
  "type": "object",
  "properties": {
    "DBProxyEndpointName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "[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 DB proxy endpoint. This name must be unique for all DB proxy endpoints owned by your AWS account in the specified AWS Region."
    },
    "DBProxyName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "[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. This name must be unique for all proxies owned by your AWS account in the specified AWS Region."
    },
    "VpcSecurityGroupIds": {
      "description": "VPC security group IDs to associate with the new DB proxy endpoint.",
      "type": "array",
      "insertionOrder": false,
      "minItems": 1,
      "items": {
        "type": "string"
      }
    },
    "VpcSubnetIds": {
      "description": "VPC subnet IDs to associate with the new DB proxy endpoint.",
      "type": "array",
      "minItems": 2,
      "insertionOrder": false,
      "items": {
        "type": "string"
      }
    },
    "TargetRole": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "READ_WRITE",
            "READ_ONLY"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations."
    },
    "Tags": {
      "description": "An optional set of key-value pairs to associate arbitrary data of your choosing with the DB proxy endpoint.",
      "type": "array",
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/TagFormat"
      }
    }
  },
  "typeName": "AWS::RDS::DBProxyEndpoint",
  "primaryIdentifier": [
    "/properties/DBProxyEndpointName"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/DBProxyName",
    "/properties/DBProxyEndpointName",
    "/properties/VpcSubnetIds"
  ],
  "$defs": {
    "TagFormat": {
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "(\\w|\\d|\\s|\\\\|-|\\.:=+-)*",
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "(\\w|\\d|\\s|\\\\|-|\\.:=+-)*",
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSRDSDBProxyEndpointTagFormatDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "DBProxyName",
    "DBProxyEndpointName",
    "VpcSubnetIds"
  ],
  "readOnlyProperties": [
    "/properties/DBProxyEndpointArn",
    "/properties/Endpoint",
    "/properties/VpcId",
    "/properties/IsDefault"
  ]
}
