describe_reserved_db_instances
¶
describe_reserved_db_instances(
*,
config_overrides: Optional[RDSClientConfig] = None,
reserved_db_instance_id: Optional[String] = None,
reserved_db_instances_offering_id: Optional[String] = None,
db_instance_class: Optional[String] = None,
duration: Optional[String] = None,
product_description: Optional[String] = None,
offering_type: Optional[String] = None,
multi_az: Optional[BooleanOptional] = None,
lease_id: Optional[String] = None,
filters: Optional[FilterList] = None,
max_records: Optional[IntegerOptional] = None,
marker: Optional[String] = None,
) -> ReservedDBInstanceMessage
Returns information about reserved DB instances for this account, or about a specified reserved DB instance.
Parameters:
-
reserved_db_instance_id(Optional[String], default:None) –The reserved DB instance identifier filter value. Specify this parameter to show only the reservation that matches the specified reservation ID.
-
reserved_db_instances_offering_id(Optional[String], default:None) –The offering identifier filter value. Specify this parameter to show only purchased reservations matching the specified offering identifier.
-
db_instance_class(Optional[String], default:None) –The DB instance class filter value. Specify this parameter to show only those reservations matching the specified DB instances class.
-
duration(Optional[String], default:None) –The duration filter value, specified in years or seconds. Specify this parameter to show only reservations for this duration.
Valid Values:
1 | 3 | 31536000 | 94608000 -
product_description(Optional[String], default:None) –The product description filter value. Specify this parameter to show only those reservations matching the specified product description.
-
offering_type(Optional[String], default:None) –The offering type filter value. Specify this parameter to show only the available offerings matching the specified offering type.
Valid Values:
"Partial Upfront" | "All Upfront" | "No Upfront" -
multi_az(Optional[BooleanOptional], default:None) –Specifies whether to show only those reservations that support Multi-AZ.
-
lease_id(Optional[String], default:None) –The lease identifier filter value. Specify this parameter to show only the reservation that matches the specified lease ID.
Amazon Web Services Support might request the lease ID for an issue related to a reserved DB instance.
-
filters(Optional[FilterList], default:None) –This parameter isn't currently supported.
-
max_records(Optional[IntegerOptional], default:None) –The maximum number of records to include in the response. If more than the
MaxRecordsvalue is available, a pagination token called a marker is included in the response so you can retrieve the remaining results.Default: 100
Constraints: Minimum 20, maximum 100.
-
marker(Optional[String], default:None) –An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords.
Raises:
-
ReservedDBInstanceNotFoundFault–The specified reserved DB Instance not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe reserved DB instances The following example retrieves details about any reserved DB instances in the current AWS account.
Source code in docs_src/capo_rds/_services/rds.py
9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 | |