get_billing_preferences
async
¶
get_billing_preferences(
features: BillingFeatures,
*,
config_overrides: Optional[AsyncBillingClientConfig] = None,
next_token: Optional[PageToken] = None,
max_results: Optional[int] = None,
filters: Optional[BillingFeatureFilters] = None,
) -> GetBillingPreferencesResponse
Retrieves billing preferences for the specified feature. Each feature controls a distinct billing capability: which accounts can share Reserved Instances or credits, whether billing alerts are enabled, the historical record of sharing changes, and per-credit options.
Parameters:
-
next_token(Optional[PageToken], default:None) –Pagination token from a previous response. Pass the value returned in
nextTokento retrieve the next page of results. -
max_results(Optional[int], default:None) –The maximum number of records to return per page. Range: 1 to 50. Default: 50.
-
features(BillingFeatures) –The feature to retrieve. Specify exactly one value. Valid values:
BILLING_ALERTS,RI_SHARING,RI_SHARING_HISTORY,CREDIT_SHARING,CREDIT_SHARING_HISTORY,CREDIT_LEVEL_SHARING,CREDIT_PREFERENCE_OPTIONS. -
filters(Optional[BillingFeatureFilters], default:None) –Filters to narrow results. Specify exactly one filter when supplied. The supported filter name is
PREFERENCE_KEY, which accepts 1 to 10 values to match preference keys.
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.