Skip to content

describe_savings_plans_offering_rates async

describe_savings_plans_offering_rates(
    *,
    config_overrides: Optional[AsyncsavingsplansClientConfig] = None,
    savings_plan_offering_ids: Optional[UUIDs] = None,
    savings_plan_payment_options: Optional[SavingsPlanPaymentOptionList] = None,
    savings_plan_types: Optional[SavingsPlanTypeList] = None,
    products: Optional[SavingsPlanProductTypeList] = None,
    service_codes: Optional[SavingsPlanRateServiceCodeList] = None,
    usage_types: Optional[SavingsPlanRateUsageTypeList] = None,
    operations: Optional[SavingsPlanRateOperationList] = None,
    filters: Optional[SavingsPlanOfferingRateFiltersList] = None,
    next_token: Optional[PaginationToken] = None,
    max_results: Optional[PageSize] = None,
) -> DescribeSavingsPlansOfferingRatesResponse

Describes the offering rates for Savings Plans you might want to purchase.

Parameters:

Raises:

Source code in docs_src/capo_savingsplans/_services/async_savingsplans.py
async def describe_savings_plans_offering_rates(
    self,
    *,
    config_overrides: Optional[AsyncsavingsplansClientConfig] = None,
    savings_plan_offering_ids: Optional[
        "capo_savingsplans.types.uui_ds.UUIDs"
    ] = None,
    savings_plan_payment_options: Optional[
        "capo_savingsplans.types.savings_plan_payment_option_list.SavingsPlanPaymentOptionList"
    ] = None,
    savings_plan_types: Optional[
        "capo_savingsplans.types.savings_plan_type_list.SavingsPlanTypeList"
    ] = None,
    products: Optional[
        "capo_savingsplans.types.savings_plan_product_type_list.SavingsPlanProductTypeList"
    ] = None,
    service_codes: Optional[
        "capo_savingsplans.types.savings_plan_rate_service_code_list.SavingsPlanRateServiceCodeList"
    ] = None,
    usage_types: Optional[
        "capo_savingsplans.types.savings_plan_rate_usage_type_list.SavingsPlanRateUsageTypeList"
    ] = None,
    operations: Optional[
        "capo_savingsplans.types.savings_plan_rate_operation_list.SavingsPlanRateOperationList"
    ] = None,
    filters: Optional[
        "capo_savingsplans.types.savings_plan_offering_rate_filters_list.SavingsPlanOfferingRateFiltersList"
    ] = None,
    next_token: Optional[
        "capo_savingsplans.types.pagination_token.PaginationToken"
    ] = None,
    max_results: Optional["capo_savingsplans.types.page_size.PageSize"] = None,
) -> "capo_savingsplans.types.describe_savings_plans_offering_rates_response.DescribeSavingsPlansOfferingRatesResponse":
    """<p>Describes the offering rates for Savings Plans you might want to purchase.</p>

    Args:
        savings_plan_offering_ids: <p>The IDs of the offerings.</p>
        savings_plan_payment_options: <p>The payment options.</p>
        savings_plan_types: <p>The plan types.</p>
        products: <p>The Amazon Web Services products.</p>
        service_codes: <p>The services.</p>
        usage_types: <p>The usage details of the line item in the billing report.</p>
        operations: <p>The specific Amazon Web Services operation for the line item in the billing report.</p>
        filters: <p>The filters.</p>
        next_token: <p>The token for the next page of results.</p>
        max_results: <p>The maximum number of results to return with a single call. To retrieve additional results, make another call with the returned token value.</p>

    Raises:
        capo_savingsplans.errors.internal_server_exception.InternalServerException: <p>An unexpected error occurred.</p>
        capo_savingsplans.errors.validation_exception.ValidationException: <p>One of the input parameters is not valid.</p>
        capo_savingsplans.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_savingsplans.types.describe_savings_plans_offering_rates_request.DescribeSavingsPlansOfferingRatesRequest]",
    ) -> AsyncOperationResponse[
        "capo_savingsplans.types.describe_savings_plans_offering_rates_response.DescribeSavingsPlansOfferingRatesResponse"
    ]:
        import capo_savingsplans._operations.aws_savings_plan.describe_savings_plans_offering_rates

        (
            output,
            http_response,
        ) = await capo_savingsplans._operations.aws_savings_plan.describe_savings_plans_offering_rates.async_describe_savings_plans_offering_rates(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeSavingsPlansOfferingRates")
    )
    input_: capo_savingsplans.types.describe_savings_plans_offering_rates_request.DescribeSavingsPlansOfferingRatesRequest = {}
    if savings_plan_offering_ids is not None:
        input_["savings_plan_offering_ids"] = savings_plan_offering_ids
    if savings_plan_payment_options is not None:
        input_["savings_plan_payment_options"] = savings_plan_payment_options
    if savings_plan_types is not None:
        input_["savings_plan_types"] = savings_plan_types
    if products is not None:
        input_["products"] = products
    if service_codes is not None:
        input_["service_codes"] = service_codes
    if usage_types is not None:
        input_["usage_types"] = usage_types
    if operations is not None:
        input_["operations"] = operations
    if filters is not None:
        input_["filters"] = filters
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output