ModifyDBCapacityReservation
Modifies a DB capacity reservation. You can change the reserved capacity in each Availability Zone of the reservation, and you can change the end date of the reservation. You can't change the Availability Zones of an existing reservation.
The reservation must be in the active state. A future-dated reservation
that hasn't started isn't modifiable, and neither is a reservation that Amazon
RDS is already modifying.
You must specify CapacityPerAvailabilityZone,
EndDateType, or EndDate. A request that specifies none of the
three changes nothing, and Amazon RDS rejects it.
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
- DBCapacityReservationIdentifier
-
The identifier or the name of the DB capacity reservation to modify. You can specify the identifier, which has the prefix
dbcr-, or the reservation name.Type: String
Length Constraints: Minimum length of 1. Maximum length of 63.
Pattern:
[a-z](?:-?[a-z0-9]+){0,15}Required: Yes
- CapacityPerAvailabilityZone
-
The new number of DB instances to reserve in each Availability Zone of the reservation. Amazon RDS applies this number to every Availability Zone of the reservation.
An increase reserves more capacity at the time of the request, so it can fail when the AWS Region has insufficient capacity.
This value multiplied by the number of Availability Zones counts against the DB instances quota for your AWS account in the AWS Region. Amazon RDS checks the quota only when you increase the value.
Constraints:
-
Minimum 1.
-
Can't be less than the highest number of DB instances that use the reservation in any single Availability Zone of the reservation. That number includes a DB instance that holds a unit of reserved capacity for a pending modification. To find that number for an Availability Zone, subtract
AvailableCapacityfromReservedCapacityPerAvailabilityZone. -
During a capacity commitment, can't be less than
CommittedCapacityPerAvailabilityZone.
Type: Integer
Required: No
-
- EndDate
-
The new end date for the reservation, in Universal Coordinated Time (UTC). Required when
EndDateTypeislimited. Don't specify a value whenEndDateTypeisunlimited.When you specify
EndDate, you must also specifyEndDateType.Constraints:
-
Must be a date and time in the future.
-
During a capacity commitment, must be at or after
CommitmentEndDate.
Type: Timestamp
Required: No
-
- EndDateType
-
The end date type for the reservation.
Valid Values:
-
limited- The reservation has a specific end date. You must also specifyEndDate. -
unlimited- The reservation doesn't expire. Don't specifyEndDate.
Type: String
Valid Values:
unlimited | limitedRequired: No
-
Response Elements
The following element is returned by the service.
- DBCapacityReservation
-
Contains the details of the modified DB capacity reservation.
Type: DBCapacityReservation object
Errors
For information about the errors that are common to all actions, see Common Error Types.
- DBCapacityReservationNotFound
-
DBCapacityReservationIdentifierdoesn't refer to an existing DB capacity reservation.HTTP Status Code: 404
- InstanceQuotaExceeded
-
The request would result in the user exceeding the allowed number of DB instances.
HTTP Status Code: 400
- InsufficientDBInstanceCapacity
-
The specified DB instance class isn't available in the specified Availability Zone.
HTTP Status Code: 400
- InvalidDBCapacityReservationState
-
The DB capacity reservation isn't in a valid state.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: