Class: Aws::RDS::Types::AvailableCapacityPerAvailabilityZone

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-rds/lib/aws-sdk-rds/types.rb

Overview

Contains the unused capacity of a DB capacity reservation in one Availability Zone.

This data type is used as a response element in the following operations:

  • CancelDBCapacityReservation

  • CreateDBCapacityReservation

  • DescribeDBCapacityReservations

  • ModifyDBCapacityReservation

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#availability_zone ⇒ String

The name of the Availability Zone.

Returns:

  • (String)


698
699
700
701
702
703
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/types.rb', line 698

class AvailableCapacityPerAvailabilityZone < Struct.new(
  :availability_zone,
  :available_capacity)
  SENSITIVE = []
  include Aws::Structure
end

#available_capacity ⇒ Integer

The number of DB instances that remain available in this Availability Zone. Amazon RDS decreases this value when a DB instance takes a unit of reserved capacity in this Availability Zone, and it increases this value when a DB instance releases that unit.

A DB instance with a pending modification also holds a unit of reserved capacity. A DB instance has a pending modification when Amazon RDS accepts a change to the DB instance and applies that change later, during the maintenance window. Amazon RDS holds the unit from the time that it accepts the request. To find a DB instance with a pending modification, check PendingModifiedValues in the response of DescribeDBInstances.

Amazon RDS reports available capacity only for a reservation that is in the active state and not past its end date. Otherwise, this value is 0.

Returns:

  • (Integer)


698
699
700
701
702
703
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/types.rb', line 698

class AvailableCapacityPerAvailabilityZone < Struct.new(
  :availability_zone,
  :available_capacity)
  SENSITIVE = []
  include Aws::Structure
end