Skip to content

DBCapacityReservation

Source code in docs_src/capo_rds/types/db_capacity_reservation.py
class DBCapacityReservation(TypedDict, closed=True):
    db_capacity_reservation_name: NotRequired[
        "capo_rds.types.db_capacity_reservation_name.DBCapacityReservationName"
    ]
    """<p>The name that you specified for the DB capacity reservation.</p>"""
    db_instance_class: NotRequired["capo_rds.types.db_instance_class.DBInstanceClass"]
    """<p>The DB instance class for the reserved capacity. You specify this value when you create the reservation, and you can't change it afterward.</p>"""
    engine: NotRequired["capo_rds.types.string.String"]
    """<p>The database engine for the reserved capacity. You specify this value when you create the reservation, and you can't change it afterward.</p>"""
    license_model: NotRequired["capo_rds.types.string.String"]
    """<p>The license model for the reserved capacity. Amazon RDS returns this value only for a reservation that reserves capacity for a specific license model. Amazon RDS doesn't return this value for a reservation whose database engine doesn't support a license model.</p> <p>A DB instance launches into the reservation only when the license model of the DB instance matches this value. For a reservation that holds no license model, Amazon RDS applies no license model check at launch.</p> <p>Valid Values:</p> <ul> <li> <p>RDS for Microsoft SQL Server Enterprise Edition and Standard Edition - <code>license-included | bring-your-own-media</code> </p> </li> <li> <p>RDS for Microsoft SQL Server Developer Edition - <code>bring-your-own-license</code> </p> </li> <li> <p>RDS for Oracle - <code>bring-your-own-license | license-included</code> </p> </li> <li> <p>RDS for Db2 Standard Edition and Advanced Edition - <code>bring-your-own-license | marketplace-license</code> </p> </li> </ul> <p>For RDS for Db2 Standard Edition and Advanced Edition, a reservation created without a license model holds <code>bring-your-own-license</code>.</p>"""
    reserved_capacity_per_availability_zone: NotRequired[
        "capo_rds.types.integer_optional.IntegerOptional"
    ]
    """<p>The number of DB instances that Amazon RDS reserves in each Availability Zone of the reservation. This value matches the <code>CapacityPerAvailabilityZone</code> parameter of the request. The total reserved capacity is this value multiplied by the number of Availability Zones of the reservation.</p>"""
    available_capacity_per_availability_zone_list: NotRequired[
        "capo_rds.types.available_capacity_per_availability_zone_list.AvailableCapacityPerAvailabilityZoneList"
    ]
    """<p>The unused capacity of the reservation, reported for each Availability Zone of the reservation. Each entry names one Availability Zone, and it reports the number of DB instances that remain available in that Availability Zone.</p> <p>Amazon RDS reports available capacity only for a reservation that is in the <code>active</code> state and not past its end date. Otherwise, each entry reports an available capacity of <code>0</code>. A future-dated reservation that hasn't started reports <code>0</code>, and a reservation that Amazon RDS is modifying reports <code>0</code>.</p> <p>A reservation reports the <code>pending</code> state while Amazon RDS modifies it. Therefore, a reservation in the <code>active</code> state that reports no available capacity has no unused capacity.</p>"""
    end_date: NotRequired["capo_rds.types.t_stamp.TStamp"]
    """<p>The date and time when the reservation expires, in Universal Coordinated Time (UTC). Amazon RDS doesn't return this value if the reservation doesn't expire.</p> <important> <p>A DB instance that uses the reservation keeps running after the reservation expires. It continues on unreserved capacity, and Amazon RDS doesn't stop it or modify it. However, Amazon RDS no longer reserves capacity for the DB instance. Amazon RDS might later move the DB instance to different hardware, for example during hardware maintenance. That move can fail when the Amazon Web Services Region has insufficient capacity for the DB instance class.</p> </important>"""
    create_date: NotRequired["capo_rds.types.t_stamp.TStamp"]
    """<p>The date and time when the reservation was created, in Universal Coordinated Time (UTC).</p>"""
    start_date: NotRequired["capo_rds.types.t_stamp.TStamp"]
    """<p>The date and time when a future-dated reservation starts, in Universal Coordinated Time (UTC). Amazon RDS doesn't return this value for a reservation that started immediately.</p>"""
    commitment_info: NotRequired[
        "capo_rds.types.db_capacity_reservation_commitment_info.DBCapacityReservationCommitmentInfo"
    ]
    """<p>The capacity commitment of the reservation. Amazon RDS returns this object only for a future-dated reservation.</p>"""
    state: NotRequired[
        "capo_rds.types.db_capacity_reservation_state.DBCapacityReservationState"
    ]
    """<p>The current state of the DB capacity reservation. A DB instance can use the reservation in the <code>active</code> state only.</p> <p>Valid Values:</p> <ul> <li> <p> <code>active</code> - Amazon RDS holds the reserved capacity, and a DB instance can use it.</p> </li> <li> <p> <code>pending</code> - The reservation isn't ready to use yet. Amazon RDS is creating the reserved capacity, or it is applying a requested modification.</p> </li> <li> <p> <code>assessing</code> - Amazon RDS is evaluating the request for a future-dated reservation.</p> </li> <li> <p> <code>scheduled</code> - Amazon RDS accepted a future-dated reservation, and the reservation is waiting for its start date.</p> </li> <li> <p> <code>delayed</code> - Amazon RDS couldn't provide the reserved capacity of a future-dated reservation by its start date.</p> </li> <li> <p> <code>unsupported</code> - Amazon RDS can't fulfill the future-dated reservation as requested.</p> </li> <li> <p> <code>expired</code> - The reservation passed its end date. Amazon RDS releases the reserved capacity.</p> </li> <li> <p> <code>cancelled</code> - You cancelled the reservation, and Amazon RDS released the reserved capacity.</p> </li> <li> <p> <code>failed</code> - Amazon RDS couldn't reserve the capacity.</p> </li> </ul> <p>The values <code>assessing</code>, <code>scheduled</code>, <code>delayed</code>, and <code>unsupported</code> apply to a future-dated reservation only.</p>"""
    db_capacity_reservation_arn: NotRequired["capo_rds.types.string.String"]
    """<p>The Amazon Resource Name (ARN) of the DB capacity reservation.</p>"""
    db_capacity_reservation_identifier: NotRequired[
        "capo_rds.types.db_capacity_reservation_identifier.DBCapacityReservationIdentifier"
    ]
    """<p>The unique identifier of the DB capacity reservation. The identifier has the prefix <code>dbcr-</code>. Every other DB capacity reservation operation takes this identifier.</p>"""
    tag_list: NotRequired["capo_rds.types.tag_list.TagList"]
    """<p>The tags associated with the DB capacity reservation.</p>"""

available_capacity_per_availability_zone_list instance-attribute

available_capacity_per_availability_zone_list: NotRequired[
    AvailableCapacityPerAvailabilityZoneList
]

The unused capacity of the reservation, reported for each Availability Zone of the reservation. Each entry names one Availability Zone, and it reports the number of DB instances that remain available in that Availability Zone.

Amazon RDS reports available capacity only for a reservation that is in the active state and not past its end date. Otherwise, each entry reports an available capacity of 0. A future-dated reservation that hasn't started reports 0, and a reservation that Amazon RDS is modifying reports 0.

A reservation reports the pending state while Amazon RDS modifies it. Therefore, a reservation in the active state that reports no available capacity has no unused capacity.

commitment_info instance-attribute

commitment_info: NotRequired[DBCapacityReservationCommitmentInfo]

The capacity commitment of the reservation. Amazon RDS returns this object only for a future-dated reservation.

create_date instance-attribute

create_date: NotRequired[TStamp]

The date and time when the reservation was created, in Universal Coordinated Time (UTC).

db_capacity_reservation_arn instance-attribute

db_capacity_reservation_arn: NotRequired[String]

The Amazon Resource Name (ARN) of the DB capacity reservation.

db_capacity_reservation_identifier instance-attribute

db_capacity_reservation_identifier: NotRequired[DBCapacityReservationIdentifier]

The unique identifier of the DB capacity reservation. The identifier has the prefix dbcr-. Every other DB capacity reservation operation takes this identifier.

db_capacity_reservation_name instance-attribute

db_capacity_reservation_name: NotRequired[DBCapacityReservationName]

The name that you specified for the DB capacity reservation.

db_instance_class instance-attribute

db_instance_class: NotRequired[DBInstanceClass]

The DB instance class for the reserved capacity. You specify this value when you create the reservation, and you can't change it afterward.

end_date instance-attribute

end_date: NotRequired[TStamp]

The date and time when the reservation expires, in Universal Coordinated Time (UTC). Amazon RDS doesn't return this value if the reservation doesn't expire.

A DB instance that uses the reservation keeps running after the reservation expires. It continues on unreserved capacity, and Amazon RDS doesn't stop it or modify it. However, Amazon RDS no longer reserves capacity for the DB instance. Amazon RDS might later move the DB instance to different hardware, for example during hardware maintenance. That move can fail when the Amazon Web Services Region has insufficient capacity for the DB instance class.

engine instance-attribute

engine: NotRequired[String]

The database engine for the reserved capacity. You specify this value when you create the reservation, and you can't change it afterward.

license_model instance-attribute

license_model: NotRequired[String]

The license model for the reserved capacity. Amazon RDS returns this value only for a reservation that reserves capacity for a specific license model. Amazon RDS doesn't return this value for a reservation whose database engine doesn't support a license model.

A DB instance launches into the reservation only when the license model of the DB instance matches this value. For a reservation that holds no license model, Amazon RDS applies no license model check at launch.

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 - bring-your-own-license

  • RDS for Oracle - bring-your-own-license | license-included

  • RDS for Db2 Standard Edition and Advanced Edition - bring-your-own-license | marketplace-license

For RDS for Db2 Standard Edition and Advanced Edition, a reservation created without a license model holds bring-your-own-license.

reserved_capacity_per_availability_zone instance-attribute

reserved_capacity_per_availability_zone: NotRequired[IntegerOptional]

The number of DB instances that Amazon RDS reserves in each Availability Zone of the reservation. This value matches the CapacityPerAvailabilityZone parameter of the request. The total reserved capacity is this value multiplied by the number of Availability Zones of the reservation.

start_date instance-attribute

start_date: NotRequired[TStamp]

The date and time when a future-dated reservation starts, in Universal Coordinated Time (UTC). Amazon RDS doesn't return this value for a reservation that started immediately.

state instance-attribute

state: NotRequired[DBCapacityReservationState]

The current state of the DB capacity reservation. A DB instance can use the reservation in the active state only.

Valid Values:

  • active - Amazon RDS holds the reserved capacity, and a DB instance can use it.

  • pending - The reservation isn't ready to use yet. Amazon RDS is creating the reserved capacity, or it is applying a requested modification.

  • assessing - Amazon RDS is evaluating the request for a future-dated reservation.

  • scheduled - Amazon RDS accepted a future-dated reservation, and the reservation is waiting for its start date.

  • delayed - Amazon RDS couldn't provide the reserved capacity of a future-dated reservation by its start date.

  • unsupported - Amazon RDS can't fulfill the future-dated reservation as requested.

  • expired - The reservation passed its end date. Amazon RDS releases the reserved capacity.

  • cancelled - You cancelled the reservation, and Amazon RDS released the reserved capacity.

  • failed - Amazon RDS couldn't reserve the capacity.

The values assessing, scheduled, delayed, and unsupported apply to a future-dated reservation only.

tag_list instance-attribute

tag_list: NotRequired[TagList]

The tags associated with the DB capacity reservation.