Skip to content

describe_savings_plans_offerings async

describe_savings_plans_offerings(
    *,
    config_overrides: Optional[AsyncsavingsplansClientConfig] = None,
    offering_ids: Optional[UUIDs] = None,
    payment_options: Optional[SavingsPlanPaymentOptionList] = None,
    product_type: Optional[SavingsPlanProductType] = None,
    plan_types: Optional[SavingsPlanTypeList] = None,
    durations: Optional[DurationsList] = None,
    currencies: Optional[CurrencyList] = None,
    descriptions: Optional[SavingsPlanDescriptionsList] = None,
    service_codes: Optional[SavingsPlanServiceCodeList] = None,
    usage_types: Optional[SavingsPlanUsageTypeList] = None,
    operations: Optional[SavingsPlanOperationList] = None,
    filters: Optional[SavingsPlanOfferingFiltersList] = None,
    next_token: Optional[PaginationToken] = None,
    max_results: Optional[PageSize] = None,
) -> DescribeSavingsPlansOfferingsResponse

Describes the offerings for the specified Savings Plans.

Parameters:

Raises:

Source code in docs_src/capo_savingsplans/_services/async_savingsplans.py
async def describe_savings_plans_offerings(
    self,
    *,
    config_overrides: Optional[AsyncsavingsplansClientConfig] = None,
    offering_ids: Optional["capo_savingsplans.types.uui_ds.UUIDs"] = None,
    payment_options: Optional[
        "capo_savingsplans.types.savings_plan_payment_option_list.SavingsPlanPaymentOptionList"
    ] = None,
    product_type: Optional[
        "capo_savingsplans.types.savings_plan_product_type.SavingsPlanProductType"
    ] = None,
    plan_types: Optional[
        "capo_savingsplans.types.savings_plan_type_list.SavingsPlanTypeList"
    ] = None,
    durations: Optional[
        "capo_savingsplans.types.durations_list.DurationsList"
    ] = None,
    currencies: Optional[
        "capo_savingsplans.types.currency_list.CurrencyList"
    ] = None,
    descriptions: Optional[
        "capo_savingsplans.types.savings_plan_descriptions_list.SavingsPlanDescriptionsList"
    ] = None,
    service_codes: Optional[
        "capo_savingsplans.types.savings_plan_service_code_list.SavingsPlanServiceCodeList"
    ] = None,
    usage_types: Optional[
        "capo_savingsplans.types.savings_plan_usage_type_list.SavingsPlanUsageTypeList"
    ] = None,
    operations: Optional[
        "capo_savingsplans.types.savings_plan_operation_list.SavingsPlanOperationList"
    ] = None,
    filters: Optional[
        "capo_savingsplans.types.savings_plan_offering_filters_list.SavingsPlanOfferingFiltersList"
    ] = 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_offerings_response.DescribeSavingsPlansOfferingsResponse":
    """<p>Describes the offerings for the specified Savings Plans.</p>

    Args:
        offering_ids: <p>The IDs of the offerings.</p>
        payment_options: <p>The payment options.</p>
        product_type: <p>The product type.</p>
        plan_types: <p>The plan types.</p>
        durations: <p>The duration, in seconds.</p>
        currencies: <p>The currencies.</p>
        descriptions: <p>The descriptions.</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_offerings_request.DescribeSavingsPlansOfferingsRequest]",
    ) -> AsyncOperationResponse[
        "capo_savingsplans.types.describe_savings_plans_offerings_response.DescribeSavingsPlansOfferingsResponse"
    ]:
        import capo_savingsplans._operations.aws_savings_plan.describe_savings_plans_offerings

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeSavingsPlansOfferings")
    )
    input_: capo_savingsplans.types.describe_savings_plans_offerings_request.DescribeSavingsPlansOfferingsRequest = {}
    if offering_ids is not None:
        input_["offering_ids"] = offering_ids
    if payment_options is not None:
        input_["payment_options"] = payment_options
    if product_type is not None:
        input_["product_type"] = product_type
    if plan_types is not None:
        input_["plan_types"] = plan_types
    if durations is not None:
        input_["durations"] = durations
    if currencies is not None:
        input_["currencies"] = currencies
    if descriptions is not None:
        input_["descriptions"] = descriptions
    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