{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-rds/json-schema/amazon-rds-create-dbproxy-request-schema.json",
  "title": "CreateDBProxyRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-rds-db-proxy-api-openapi.yml#/components/schemas/CreateDBProxyRequest",
  "type": "object",
  "properties": {
    "DBProxyName": {
      "type": "string",
      "description": "The identifier for the proxy. This name must be unique for all proxies owned by your Amazon Web Services account in the specified Amazon Web Services Region. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens."
    },
    "EngineFamily": {
      "type": "string",
      "enum": [
        "MYSQL",
        "POSTGRESQL",
        "SQLSERVER"
      ],
      "description": "The kinds of databases that the proxy can connect to. This value determines which database network protocol the proxy recognizes when it interprets network traffic to and from the database. For Aurora MySQL, RDS for MariaDB, and RDS for MySQL databases, specify MYSQL. For Aurora PostgreSQL and RDS for PostgreSQL databases, specify POSTGRESQL. For RDS for Microsoft SQL Server, specify SQLSERVER."
    },
    "DefaultAuthScheme": {
      "type": "string",
      "enum": [
        "IAM_AUTH",
        "NONE"
      ],
      "description": "The default authentication scheme that the proxy uses for client connections to the proxy and connections from the proxy to the underlying database. Valid values are NONE and IAM_AUTH. When set to IAM_AUTH, the proxy uses end-to-end IAM authentication to connect to the database. If you don't specify DefaultAuthScheme or specify this parameter as NONE, you must specify the Auth option."
    },
    "Auth": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UserAuthConfig"
      },
      "description": "The authorization mechanism that the proxy uses."
    },
    "RoleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in Amazon Web Services Secrets Manager."
    },
    "VpcSubnetIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "One or more VPC subnet IDs to associate with the new proxy."
    },
    "VpcSecurityGroupIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "One or more VPC security group IDs to associate with the new proxy."
    },
    "RequireTLS": {
      "type": "boolean",
      "description": "Specifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy. By enabling this setting, you can enforce encrypted TLS connections to the proxy."
    },
    "IdleClientTimeout": {
      "type": "integer",
      "description": "The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it. You can set this value higher or lower than the connection timeout limit for the associated database."
    },
    "DebugLogging": {
      "type": "boolean",
      "description": "Specifies whether the proxy logs detailed connection and query information. When you enable DebugLogging, the proxy captures connection details and connection pool behavior from your queries. Debug logging increases CloudWatch costs and can impact proxy performance. Enable this option only when you need to troubleshoot connection or performance issues."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy."
    },
    "EndpointNetworkType": {
      "type": "string",
      "enum": [
        "IPV4",
        "IPV6",
        "DUAL"
      ],
      "description": "The network type of the DB proxy endpoint. The network type determines the IP version that the proxy endpoint supports. Valid values: IPV4 - The proxy endpoint supports IPv4 only. IPV6 - The proxy endpoint supports IPv6 only. DUAL - The proxy endpoint supports both IPv4 and IPv6. Default: IPV4 Constraints: If you specify IPV6 or DUAL, the VPC and all subnets must have an IPv6 CIDR block. If you specify IPV6 or DUAL, the VPC tenancy cannot be dedicated."
    },
    "TargetConnectionNetworkType": {
      "type": "string",
      "enum": [
        "IPV4",
        "IPV6"
      ],
      "description": "The network type that the proxy uses to connect to the target database. The network type determines the IP version that the proxy uses for connections to the database. Valid values: IPV4 - The proxy connects to the database using IPv4 only. IPV6 - The proxy connects to the database using IPv6 only. Default: IPV4 Constraints: If you specify IPV6, the database must support dual-stack mode. RDS doesn't support IPv6-only databases. All targets registered with the proxy must be compatible with the specified network type."
    }
  },
  "required": [
    "DBProxyName",
    "EngineFamily",
    "RoleArn",
    "VpcSubnetIds"
  ],
  "$defs": {
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with aws: or rds:. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-@]*)$\")."
        },
        "Value": {
          "type": "string",
          "description": "A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with aws: or rds:. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-@]*)$\")."
        }
      }
    },
    "UserAuthConfig": {
      "type": "object",
      "properties": {
        "Description": {
          "type": "string",
          "description": "A user-specified description about the authentication used by a proxy to log in as a specific database user."
        },
        "UserName": {
          "type": "string",
          "description": "The name of the database user to which the proxy connects."
        },
        "AuthScheme": {
          "type": "string",
          "enum": [
            "SECRETS"
          ],
          "description": "The type of authentication that the proxy uses for connections from the proxy to the underlying database."
        },
        "SecretArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) representing the secret that the proxy uses to authenticate to the RDS DB instance or Aurora DB cluster. These secrets are stored within Amazon Secrets Manager."
        },
        "IAMAuth": {
          "type": "string",
          "enum": [
            "DISABLED",
            "REQUIRED",
            "ENABLED"
          ],
          "description": "A value that indicates whether to require or disallow Amazon Web Services Identity and Access Management (IAM) authentication for connections to the proxy. The ENABLED value is valid only for proxies with RDS for Microsoft SQL Server."
        },
        "ClientPasswordAuthType": {
          "type": "string",
          "enum": [
            "MYSQL_NATIVE_PASSWORD",
            "MYSQL_CACHING_SHA2_PASSWORD",
            "POSTGRES_SCRAM_SHA_256",
            "POSTGRES_MD5",
            "SQL_SERVER_AUTHENTICATION"
          ],
          "description": "The type of authentication the proxy uses for connections from clients. The following values are defaults for the corresponding engines: RDS for MySQL: MYSQL_CACHING_SHA2_PASSWORD RDS for SQL Server: SQL_SERVER_AUTHENTICATION RDS for PostgreSQL: POSTGRES_SCRAM_SHA2_256"
        }
      }
    }
  }
}