Skip to content

get_enterprise_support_charge_summary async

get_enterprise_support_charge_summary(
    billing_month: EnterpriseSupportBillingMonth,
    *,
    config_overrides: Optional[AsyncBillingClientConfig] = None,
) -> GetEnterpriseSupportChargeSummaryResponse

Returns a summary of Enterprise Support data aggregated across all accounts in the Enterprise Support profile.

Parameters:

Raises:

Source code in docs_src/capo_billing/_services/async_billing.py
async def get_enterprise_support_charge_summary(
    self,
    billing_month: "capo_billing.types.enterprise_support_billing_month.EnterpriseSupportBillingMonth",
    *,
    config_overrides: Optional[AsyncBillingClientConfig] = None,
) -> "capo_billing.types.get_enterprise_support_charge_summary_response.GetEnterpriseSupportChargeSummaryResponse":
    """<p>Returns a summary of Enterprise Support data aggregated across all accounts in the Enterprise Support profile.</p>

    Args:
        billing_month: <p>The billing month in YYYY-MM format. This must be a month in the past.</p>

    Raises:
        capo_billing.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient access to perform this action.</p>
        capo_billing.errors.internal_server_exception.InternalServerException: <p>The request processing failed because of an unknown error, exception, or failure. </p>
        capo_billing.errors.resource_not_found_exception.ResourceNotFoundException: <p> The specified ARN in the request doesn't exist. </p>
        capo_billing.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling. </p>
        capo_billing.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service. </p>
        capo_billing.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_billing.types.get_enterprise_support_charge_summary_request.GetEnterpriseSupportChargeSummaryRequest]",
    ) -> AsyncOperationResponse[
        "capo_billing.types.get_enterprise_support_charge_summary_response.GetEnterpriseSupportChargeSummaryResponse"
    ]:
        import capo_billing._operations.aws_billing.get_enterprise_support_charge_summary

        (
            output,
            http_response,
        ) = await capo_billing._operations.aws_billing.get_enterprise_support_charge_summary.async_get_enterprise_support_charge_summary(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetEnterpriseSupportChargeSummary")
    )
    input_: capo_billing.types.get_enterprise_support_charge_summary_request.GetEnterpriseSupportChargeSummaryRequest = {
        "billing_month": billing_month
    }

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