Creates a DB capacity reservation. A DB capacity reservation reserves compute and memory capacity for DB instances of one DB instance class and one database engine. Amazon RDS reserves that capacity in each Availability Zone that you specify.
Amazon RDS reserves the same amount of capacity in every Availability Zone in the request. You set that amount with
CapacityPerAvailabilityZone, and you set the Availability Zones with
AvailabilityZones. The total reserved capacity is
CapacityPerAvailabilityZone multiplied by the number of Availability Zones.
Specify
StartDate and
CommitmentDuration together to create a future-dated reservation. A future-dated reservation reserves capacity for a period that starts later. Amazon RDS holds that capacity for the length of the commitment.
A future-dated reservation has the following additional constraints:
- DBInstanceClass must be a db.c, db.m, db.r, db.t, or db.x DB instance class. The letter after db. gives the DB instance class family. For example, db.x2g.xlarge qualifies, and db.z1d.xlarge doesn't.
- If DBInstanceClass is a db.m or db.r DB instance class, it must be from generation 7 or later. The digit after the family letter gives the generation. For example, db.m7g.xlarge qualifies, and db.m5.xlarge doesn't. A db.c, db.t, or db.x DB instance class has no generation requirement.
- The reserved capacity must total at least 32 vCPUs in each Availability Zone. Multiply CapacityPerAvailabilityZone by the number of vCPUs of the DB instance class. The product must be 32 or more.
- CommitmentDuration must be at least 14 days. For a db.x DB instance class, it must be at least 84 days.
- StartDate must be from 5 to 120 days in the future.
Therefore, a DB instance class with 2 vCPUs needs a
CapacityPerAvailabilityZone of 16 or more, a class with 4 vCPUs needs 8 or more, a class with 8 vCPUs needs 4 or more, and a class with 16 vCPUs needs 2 or more. For the number of vCPUs of each DB instance class, see
DB instance classes in the
Amazon RDS User Guide.
You can't modify a future-dated reservation before it starts. You can't cancel a future-dated reservation in the
scheduled state. You can't cancel a reservation in the
active state during its capacity commitment. Therefore, you can't cancel a future-dated reservation from the time that Amazon RDS schedules it until the commitment ends.