list_billing_views
async
¶
list_billing_views(
*,
config_overrides: Optional[AsyncBillingClientConfig] = None,
active_time_range: Optional[ActiveTimeRange] = None,
arns: Optional[BillingViewArnList] = None,
billing_view_types: Optional[BillingViewTypeList] = None,
names: Optional[StringSearches] = None,
owner_account_id: Optional[AccountId] = None,
source_account_id: Optional[AccountId] = None,
max_results: Optional[BillingViewsMaxResults] = None,
next_token: Optional[PageToken] = None,
) -> ListBillingViewsResponse
Lists the billing views available for a given time period.
Every Amazon Web Services account has a unique PRIMARY billing view that represents the billing data available by default. Accounts that use Billing Conductor also have BILLING_GROUP billing views representing pro forma costs associated with each created billing group.
Parameters:
-
active_time_range(Optional[ActiveTimeRange], default:None) –The time range for the billing views listed.
PRIMARYbilling view is always listed.BILLING_GROUPbilling views are listed for time ranges when the associated billing group resource in Billing Conductor is active. The time range must be within one calendar month. -
arns(Optional[BillingViewArnList], default:None) –The Amazon Resource Name (ARN) that can be used to uniquely identify the billing view.
-
billing_view_types(Optional[BillingViewTypeList], default:None) –The type of billing view.
-
names(Optional[StringSearches], default:None) –Filters the list of billing views by name. You can specify search criteria to match billing view names based on the search option provided.
-
owner_account_id(Optional[AccountId], default:None) –The list of owners of the billing view.
-
source_account_id(Optional[AccountId], default:None) –Filters the results to include only billing views that use the specified account as a source.
-
max_results(Optional[BillingViewsMaxResults], default:None) –The maximum number of billing views to retrieve. Default is 100.
-
next_token(Optional[PageToken], default:None) –The pagination token that is used on subsequent calls to list billing views.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action.
-
InternalServerException–The request processing failed because of an unknown error, exception, or failure.
-
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 ListBillingViews
>>> await client.list_billing_views(active_time_range={'activeAfterInclusive': 1719792000, 'activeBeforeInclusive': 1722470399.999})
Error example for ListBillingViews
>>> await client.list_billing_views(active_time_range={'activeAfterInclusive': 1719792001, 'activeBeforeInclusive': 1719792000})
Source code in docs_src/capo_billing/_services/async_billing.py
934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 | |