Skip to main content

custom_line_items

Creates, updates, deletes or gets a custom_line_item resource or lists custom_line_items in a region

Overview

Namecustom_line_items
TypeResource
DescriptionA custom line item is an one time charge that is applied to a specific billing group's bill.
Idaws.billingconductor.custom_line_items

Fields

NameDatatypeDescription
namestring
descriptionstring
custom_line_item_charge_detailsobject
billing_group_arnstringBilling Group ARN
billing_period_rangeobject
arnstringARN
creation_timeintegerCreation timestamp in UNIX epoch time format
last_modified_timeintegerLatest modified timestamp in UNIX epoch time format
association_sizeintegerNumber of source values associated to this custom line item
product_codestring
currency_codestring
account_idstringThe account which this custom line item will be charged to
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, BillingGroupArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all custom_line_items in a region.

SELECT
region,
name,
description,
custom_line_item_charge_details,
billing_group_arn,
billing_period_range,
arn,
creation_time,
last_modified_time,
association_size,
product_code,
currency_code,
account_id,
tags
FROM aws.billingconductor.custom_line_items
WHERE region = 'us-east-1';

Gets all properties from an individual custom_line_item.

SELECT
region,
name,
description,
custom_line_item_charge_details,
billing_group_arn,
billing_period_range,
arn,
creation_time,
last_modified_time,
association_size,
product_code,
currency_code,
account_id,
tags
FROM aws.billingconductor.custom_line_items
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

Use the following StackQL query and manifest file to create a new custom_line_item resource, using stack-deploy.

/*+ create */
INSERT INTO aws.billingconductor.custom_line_items (
Name,
BillingGroupArn,
region
)
SELECT
'{{ Name }}',
'{{ BillingGroupArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.billingconductor.custom_line_items
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

To operate on the custom_line_items resource, the following permissions are required:

Create

billingconductor:CreateCustomLineItem,
billingconductor:BatchAssociateResourcesToCustomLineItem,
billingconductor:ListCustomLineItems,
billingconductor:TagResource,
billingconductor:ListTagsForResource

Read

billingconductor:ListCustomLineItems,
billingconductor:ListCustomLineItemVersions,
billingconductor:ListResourcesAssociatedToCustomLineItem,
billingconductor:ListTagsForResource

List

billingconductor:ListCustomLineItems,
billingconductor:ListResourcesAssociatedToCustomLineItem,
billingconductor:ListTagsForResource

Update

billingconductor:UpdateCustomLineItem,
billingconductor:ListCustomLineItems,
billingconductor:ListResourcesAssociatedToCustomLineItem,
billingconductor:BatchAssociateResourcesToCustomLineItem,
billingconductor:BatchDisassociateResourcesFromCustomLineItem,
billingconductor:TagResource,
billingconductor:UntagResource

Delete

billingconductor:DeleteCustomLineItem,
billingconductor:ListCustomLineItems,
billingconductor:BatchDisassociateResourcesFromCustomLineItem,
billingconductor:ListResourcesAssociatedToCustomLineItem,
billingconductor:UntagResource