create_billing_group
¶
create_billing_group(
name: BillingGroupName,
account_grouping: AccountGrouping,
computation_preference: ComputationPreference,
*,
config_overrides: Optional[billingconductorClientConfig] = None,
client_token: Optional[ClientToken] = None,
primary_account_id: Optional[AccountId] = None,
description: Optional[BillingGroupDescription] = None,
tags: Optional[TagMap] = None,
) -> CreateBillingGroupOutput
Creates a billing group that resembles a consolidated billing family that Amazon Web Services charges, based off of the predefined pricing plan computation.
Parameters:
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you specify to ensure idempotency of the request. Idempotency ensures that an API request completes no more than one time. With an idempotent request, if the original request completes successfully, any subsequent retries complete successfully without performing any further actions.
-
name(BillingGroupName) –The billing group name. The names must be unique.
-
account_grouping(AccountGrouping) –The set of accounts that will be under the billing group. The set of accounts resemble the linked accounts in a consolidated billing family.
-
computation_preference(ComputationPreference) –The preferences and settings that will be used to compute the Amazon Web Services charges for a billing group.
-
primary_account_id(Optional[AccountId], default:None) –The account ID that serves as the main account in a billing group.
-
description(Optional[BillingGroupDescription], default:None) –The description of the billing group.
-
tags(Optional[TagMap], default:None) –A map that contains tag keys and tag values that are attached to a billing group. This feature isn't available during the beta.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–You can cause an inconsistent state by updating or deleting a resource.
-
InternalServerException–An unexpected error occurred while processing a request.
-
ServiceLimitExceededException–The request would cause a service limit to exceed.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input doesn't match with the constraints specified by Amazon Web Services services.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_billingconductor/_services/billingconductor.py
862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 | |