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
9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 | |