Skip to content

list_source_views_for_billing_view async

list_source_views_for_billing_view(
    arn: BillingViewArn,
    *,
    config_overrides: Optional[AsyncBillingClientConfig] = None,
    max_results: Optional[BillingViewsMaxResults] = None,
    next_token: Optional[PageToken] = None,
) -> ListSourceViewsForBillingViewResponse

Lists the source views (managed Amazon Web Services billing views) associated with the billing view.

Parameters:

  • arn (BillingViewArn) –

    The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.

  • max_results (Optional[BillingViewsMaxResults], default: None ) –

    The number of entries a paginated response contains.

  • next_token (Optional[PageToken], default: None ) –

    The pagination token that is used on subsequent calls to list billing views.

Raises:

Examples:

Invoke ListSourceViewsForBillingView

>>> await client.list_source_views_for_billing_view(arn='arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899')
Source code in docs_src/capo_billing/_services/async_billing.py
async def list_source_views_for_billing_view(
    self,
    arn: "capo_billing.types.billing_view_arn.BillingViewArn",
    *,
    config_overrides: Optional[AsyncBillingClientConfig] = None,
    max_results: Optional[
        "capo_billing.types.billing_views_max_results.BillingViewsMaxResults"
    ] = None,
    next_token: Optional["capo_billing.types.page_token.PageToken"] = None,
) -> "capo_billing.types.list_source_views_for_billing_view_response.ListSourceViewsForBillingViewResponse":
    """<p>Lists the source views (managed Amazon Web Services billing views) associated with the billing view. </p>

    Args:
        arn: <p> The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view. </p>
        max_results: <p> The number of entries a paginated response contains. </p>
        next_token: <p> The pagination token that is used on subsequent calls to list billing views. </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.

    Examples:
        Invoke ListSourceViewsForBillingView

        >>> await client.list_source_views_for_billing_view(arn='arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899')
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_billing.types.list_source_views_for_billing_view_request.ListSourceViewsForBillingViewRequest]",
    ) -> AsyncOperationResponse[
        "capo_billing.types.list_source_views_for_billing_view_response.ListSourceViewsForBillingViewResponse"
    ]:
        import capo_billing._operations.aws_billing.list_source_views_for_billing_view

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListSourceViewsForBillingView")
    )
    input_: capo_billing.types.list_source_views_for_billing_view_request.ListSourceViewsForBillingViewRequest = {
        "arn": arn
    }
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

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