Skip to content

describe_reserved_db_instances_offerings

describe_reserved_db_instances_offerings(
    *,
    config_overrides: Optional[RDSClientConfig] = 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,
    filters: Optional[FilterList] = None,
    max_records: Optional[IntegerOptional] = None,
    marker: Optional[String] = None,
) -> ReservedDBInstancesOfferingMessage

Lists available reserved DB instance offerings.

Parameters:

  • reserved_db_instances_offering_id (Optional[String], default: None ) –

    The offering identifier filter value. Specify this parameter to show only the available offering that matches the specified reservation identifier.

    Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

  • db_instance_class (Optional[String], default: None ) –

    The DB instance class filter value. Specify this parameter to show only the available offerings matching the specified DB instance class.

  • duration (Optional[String], default: None ) –

    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 ) –

    Product description filter value. Specify this parameter to show only the available offerings that contain the specified product description.

    The results show offerings that partially match the filter value.

  • 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.

  • 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 MaxRecords value 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:

Examples:

To describe reserved DB instance offerings The following example retrieves details about reserved DB instance options for RDS for Oracle.

>>> client.describe_reserved_db_instances_offerings(product_description='oracle')
Source code in docs_src/capo_rds/_services/rds.py
def describe_reserved_db_instances_offerings(
    self,
    *,
    config_overrides: Optional[RDSClientConfig] = None,
    reserved_db_instances_offering_id: Optional[
        "capo_rds.types.string.String"
    ] = None,
    db_instance_class: Optional["capo_rds.types.string.String"] = None,
    duration: Optional["capo_rds.types.string.String"] = None,
    product_description: Optional["capo_rds.types.string.String"] = None,
    offering_type: Optional["capo_rds.types.string.String"] = None,
    multi_az: Optional["capo_rds.types.boolean_optional.BooleanOptional"] = None,
    filters: Optional["capo_rds.types.filter_list.FilterList"] = None,
    max_records: Optional["capo_rds.types.integer_optional.IntegerOptional"] = None,
    marker: Optional["capo_rds.types.string.String"] = None,
) -> "capo_rds.types.reserved_db_instances_offering_message.ReservedDBInstancesOfferingMessage":
    """<p>Lists available reserved DB instance offerings.</p>

    Args:
        reserved_db_instances_offering_id: <p>The offering identifier filter value. Specify this parameter to show only the available offering that matches the specified reservation identifier.</p> <p>Example: <code>438012d3-4052-4cc7-b2e3-8d3372e0e706</code> </p>
        db_instance_class: <p>The DB instance class filter value. Specify this parameter to show only the available offerings matching the specified DB instance class.</p>
        duration: <p>Duration filter value, specified in years or seconds. Specify this parameter to show only reservations for this duration.</p> <p>Valid Values: <code>1 | 3 | 31536000 | 94608000</code> </p>
        product_description: <p>Product description filter value. Specify this parameter to show only the available offerings that contain the specified product description.</p> <note> <p>The results show offerings that partially match the filter value.</p> </note>
        offering_type: <p>The offering type filter value. Specify this parameter to show only the available offerings matching the specified offering type.</p> <p>Valid Values: <code>"Partial Upfront" | "All Upfront" | "No Upfront" </code> </p>
        multi_az: <p>Specifies whether to show only those reservations that support Multi-AZ.</p>
        filters: <p>This parameter isn't currently supported.</p>
        max_records: <p>The maximum number of records to include in the response. If more than the <code>MaxRecords</code> value is available, a pagination token called a marker is included in the response so you can retrieve the remaining results.</p> <p>Default: 100</p> <p>Constraints: Minimum 20, maximum 100.</p>
        marker: <p>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 <code>MaxRecords</code>.</p>

    Raises:
        capo_rds.errors.reserved_db_instances_offering_not_found_fault.ReservedDBInstancesOfferingNotFoundFault: <p>Specified offering does not exist.</p>
        capo_rds.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        To describe reserved DB instance offerings
        The following example retrieves details about reserved DB instance options for RDS for Oracle.

        >>> client.describe_reserved_db_instances_offerings(product_description='oracle')
    """

    def _handler(
        req: "OperationRequest[capo_rds.types.describe_reserved_db_instances_offerings_message.DescribeReservedDBInstancesOfferingsMessage]",
    ) -> OperationResponse[
        "capo_rds.types.reserved_db_instances_offering_message.ReservedDBInstancesOfferingMessage"
    ]:
        import capo_rds._operations.amazon_rd_sv19.describe_reserved_db_instances_offerings

        output, http_response = (
            capo_rds._operations.amazon_rd_sv19.describe_reserved_db_instances_offerings.describe_reserved_db_instances_offerings(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeReservedDBInstancesOfferings")
    )
    input_: capo_rds.types.describe_reserved_db_instances_offerings_message.DescribeReservedDBInstancesOfferingsMessage = {}
    if reserved_db_instances_offering_id is not None:
        input_["reserved_db_instances_offering_id"] = (
            reserved_db_instances_offering_id
        )
    if db_instance_class is not None:
        input_["db_instance_class"] = db_instance_class
    if duration is not None:
        input_["duration"] = duration
    if product_description is not None:
        input_["product_description"] = product_description
    if offering_type is not None:
        input_["offering_type"] = offering_type
    if multi_az is not None:
        input_["multi_az"] = multi_az
    if filters is not None:
        input_["filters"] = filters
    if max_records is not None:
        input_["max_records"] = max_records
    if marker is not None:
        input_["marker"] = marker

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output