{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-rds/json-schema/amazon-rds-create-tenant-database-message-schema.json",
  "title": "CreateTenantDatabaseMessage",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-rds-tenant-database-api-openapi.yml#/components/schemas/CreateTenantDatabaseMessage",
  "type": "object",
  "properties": {
    "DBInstanceIdentifier": {
      "type": "string",
      "description": "The user-supplied DB instance identifier. RDS creates your tenant database in this DB instance. This parameter isn't case-sensitive."
    },
    "TenantDBName": {
      "type": "string",
      "description": "The user-supplied name of the tenant database that you want to create in your DB instance. This parameter has the same constraints as DBName in CreateDBInstance."
    },
    "MasterUsername": {
      "type": "string",
      "description": "The name for the master user account in your tenant database. RDS creates this user account in the tenant database and grants privileges to the master user. This parameter is case-sensitive. Constraints: Must be 1 to 16 letters, numbers, or underscores. First character must be a letter. Can't be a reserved word for the chosen database engine."
    },
    "MasterUserPassword": {
      "type": "string",
      "description": "The password for the master user in your tenant database. Constraints: Must be 8 to 30 characters. Can include any printable ASCII character except forward slash (/), double quote (\"), at symbol (@), ampersand (&amp;), or single quote ('). Can't be specified when ManageMasterUserPassword is enabled."
    },
    "CharacterSetName": {
      "type": "string",
      "description": "The character set for your tenant database. If you don't specify a value, the character set name defaults to AL32UTF8."
    },
    "NcharCharacterSetName": {
      "type": "string",
      "description": "The NCHAR value for the tenant database."
    },
    "ManageMasterUserPassword": {
      "type": "boolean",
      "description": "Specifies whether to manage the master user password with Amazon Web Services Secrets Manager. For more information, see Password management with Amazon Web Services Secrets Manager in the Amazon RDS User Guide. Constraints: Can't manage the master user password with Amazon Web Services Secrets Manager if MasterUserPassword is specified."
    },
    "MasterUserSecretKmsKeyId": {
      "type": "string",
      "description": "The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets Manager. This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB instance. The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. If you don't specify MasterUserSecretKmsKeyId, then the aws/secretsmanager KMS key is used to encrypt the secret. If"
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "required": [
    "DBInstanceIdentifier",
    "TenantDBName",
    "MasterUsername"
  ],
  "$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}_.:/=+\\\\-@]*)$\")."
        }
      }
    }
  }
}