update_billing_view
¶
update_billing_view(
arn: BillingViewArn,
*,
config_overrides: Optional[BillingClientConfig] = 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
>>> 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/billing.py
2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 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 | |