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
1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 | |