update_billing_view
async
¶
update_billing_view(
arn: BillingViewArn,
*,
config_overrides: Optional[AsyncBillingClientConfig] = None,
name: Optional[BillingViewName] = None,
description: Optional[BillingViewDescription] = None,
data_filter_expression: Optional[Expression] = None,
) -> UpdateBillingViewResponse
An API to update the attributes of the billing view.
Parameters:
-
arn(BillingViewArn) –The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.
-
name(Optional[BillingViewName], default:None) –The name of the billing view.
-
description(Optional[BillingViewDescription], default:None) –The description of the billing view.
-
data_filter_expression(Optional[Expression], default:None) –See Expression. Billing view only supports
LINKED_ACCOUNT,Tags, andCostCategories.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action.
-
BillingViewHealthStatusException–Exception thrown when a billing view's health status prevents an operation from being performed. This may occur if the billing view is in a state other than
HEALTHY. -
ConflictException–The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
-
InternalServerException–The request processing failed because of an unknown error, exception, or failure.
-
ResourceNotFoundException–The specified ARN in the request doesn't exist.
-
ServiceQuotaExceededException–You've reached the limit of resources you can create, or exceeded the size of an individual resource.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Invoke UpdateBillingView
>>> await client.update_billing_view(name='Example Custom Billing View', arn='arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899', description='Custom Billing View Example -- updated description', data_filter_expression={'dimensions': {'key': 'LINKED_ACCOUNT', 'values': ['000000000000']}})
Source code in docs_src/capo_billing/_services/async_billing.py
2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 | |