create_custom_line_item
¶
create_custom_line_item(
name: CustomLineItemName,
description: CustomLineItemDescription,
billing_group_arn: BillingGroupArn,
charge_details: CustomLineItemChargeDetails,
*,
config_overrides: Optional[billingconductorClientConfig] = None,
client_token: Optional[ClientToken] = None,
billing_period_range: Optional[CustomLineItemBillingPeriodRange] = None,
tags: Optional[TagMap] = None,
account_id: Optional[AccountId] = None,
computation_rule: Optional[ComputationRuleEnum] = None,
presentation_details: Optional[PresentationObject] = None,
) -> CreateCustomLineItemOutput
Creates a custom line item that can be used to create a one-time fixed charge that can be applied to a single billing group for the current or previous billing period. The one-time fixed charge is either a fee or discount.
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(CustomLineItemName) –The name of the custom line item.
-
description(CustomLineItemDescription) –The description of the custom line item. This is shown on the Bills page in association with the charge value.
-
billing_group_arn(BillingGroupArn) –The Amazon Resource Name (ARN) that references the billing group where the custom line item applies to.
-
billing_period_range(Optional[CustomLineItemBillingPeriodRange], default:None) –A time range for which the custom line item is effective.
-
tags(Optional[TagMap], default:None) –A map that contains tag keys and tag values that are attached to a custom line item.
-
charge_details(CustomLineItemChargeDetails) –A
CustomLineItemChargeDetailsthat describes the charge details for a custom line item. -
account_id(Optional[AccountId], default:None) –The Amazon Web Services account in which this custom line item will be applied to.
-
computation_rule(Optional[ComputationRuleEnum], default:None) –Specifies how the custom line item charges are computed.
-
presentation_details(Optional[PresentationObject], default:None) –Details controlling how the custom line item charges are presented in the bill. Contains specifications for which service the charges will be shown under.
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
1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 | |