{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-rds/json-schema/amazon-rds-create-dbcapacity-reservation-request-schema.json",
  "title": "CreateDBCapacityReservationRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-rds-db-capacity-reservation-api-openapi.yml#/components/schemas/CreateDBCapacityReservationRequest",
  "type": "object",
  "properties": {
    "DBCapacityReservationName": {
      "type": "string",
      "description": "The name of the DB capacity reservation. This name must be unique for your Amazon Web Services account in the Amazon Web Services Region. Constraints: Must contain from 1 to 63 lowercase letters, digits, or hyphens. First character must be a lowercase letter. Can't end with a hyphen or contain two consecutive hyphens. Can't contain more than 16 groups of characters separated by hyphens. Can't begin with dbcr-."
    },
    "DBInstanceClass": {
      "type": "string",
      "description": "The compute and memory capacity to reserve, for example db.m5.large. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines. For the full list of DB instance classes, and availability for your engine, see DB instance classes in the Amazon RDS User Guide. Constraints: Must be a DB instance class that the specified Engine supports. For RDS for Oracle with LicenseModel set to license-included, some DB instance classes aren't supported. Either choose a supported DB instance class, or set LicenseModel to bring-your-own-license."
    },
    "Engine": {
      "type": "string",
      "description": "The database engine to reserve capacity for. Valid Values: aurora-mysql | aurora-postgresql | mysql | postgres | mariadb | oracle-ee | oracle-ee-cdb | oracle-se2 | oracle-se2-cdb | sqlserver-ee | sqlserver-se | sqlserver-web | sqlserver-ex | sqlserver-dev-ee | sqlserver-dev-se | db2-ae | db2-ce | db2-se The Developer Edition engines sqlserver-dev-ee and sqlserver-dev-se support no Multi-AZ DB instance and no read replica. Therefore, a reservation for either engine serves Single-AZ DB instances only."
    },
    "CapacityPerAvailabilityZone": {
      "type": "integer",
      "description": "The number of DB instances to reserve in each Availability Zone that you list in AvailabilityZones. Amazon RDS reserves this number of DB instances in every listed Availability Zone. A Single-AZ DB instance uses one unit of reserved capacity, in one Availability Zone. A Multi-AZ DB instance is one DB instance, and it uses one unit of reserved capacity in each of two Availability Zones. Therefore, a Multi-AZ DB instance uses two units in total. A read replica uses one unit of reserved capacity, in the same way as any other DB instance. Amazon RDS reserves capacity in each Availability Zone sepa"
    },
    "AvailabilityZones": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of Availability Zones for the reservation. You can't change the Availability Zones of a reservation after you create it. Reserved capacity in an Availability Zone that no DB instance uses stays unused. Constraints: Must specify one or more Availability Zones. Each Availability Zone can appear only once. Each Availability Zone must be in the Amazon Web Services Region of the request. Each Availability Zone must have capacity for the requested DB instance class. Must include two or more Availability Zones to use the reservation for a Multi-AZ DB instance. A DB instance can use reserved ca"
    },
    "EndDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time when the reservation expires, in Universal Coordinated Time (UTC). If you don't specify a value, the reservation doesn't expire. To change the expiration of an existing reservation, use ModifyDBCapacityReservation. That operation takes EndDateType along with EndDate. Constraints: Must be a date and time in the future. For a future-dated reservation, must be at or after StartDate plus CommitmentDuration. For example, a reservation that starts on 2026-12-01 with a 30-day commitment can't expire before 2026-12-31. To reserve capacity for one calendar month, set CommitmentDuratio"
    },
    "StartDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time when the reservation starts, in Universal Coordinated Time (UTC). Specify this parameter to create a future-dated reservation. If you don't specify a value, the reservation starts immediately. A reservation that starts later always carries a capacity commitment. Therefore, a request that specifies StartDate must also meet every constraint of a future-dated reservation, including the minimum reserved capacity in each Availability Zone. Constraints: Must be from 5 to 120 days in the future. You must also specify CommitmentDuration. Example: 2026-12-01T00:00:00Z"
    },
    "CommitmentDuration": {
      "type": "integer",
      "description": "The length of the capacity commitment that you request for a future-dated reservation, in seconds. Amazon RDS measures this length from StartDate. Amazon RDS can grant a shorter capacity commitment than you request. Therefore, read CommitmentEndDate in CommitmentInfo for the commitment that Amazon RDS granted. The commitment doesn't end the reservation. Specify EndDate to set an expiration date. You can't cancel a reservation in the active state during the commitment. Constraints: Minimum 1209600, which is 14 days. For a db.x DB instance class, such as db.x2g.xlarge, the minimum is 7257600, wh"
    },
    "LicenseModel": {
      "type": "string",
      "description": "The license model to reserve capacity for. Specify this parameter only for RDS for Microsoft SQL Server Enterprise Edition, Standard Edition, and Developer Edition, for RDS for Oracle, or for RDS for Db2 Standard Edition and Advanced Edition. Amazon RDS rejects the request for any other engine. This includes Amazon Aurora, the Web and Express editions of RDS for Microsoft SQL Server, and RDS for Db2 Community Edition. Valid Values: RDS for Microsoft SQL Server Enterprise Edition and Standard Edition - license-included | bring-your-own-media RDS for Microsoft SQL Server Developer Edition - brin"
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Tags to assign to the DB capacity reservation."
    }
  },
  "required": [
    "DBCapacityReservationName",
    "DBInstanceClass",
    "Engine",
    "CapacityPerAvailabilityZone",
    "AvailabilityZones"
  ],
  "$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}_.:/=+\\\\-@]*)$\")."
        }
      }
    }
  }
}