Skip to content

aws.billingconductor.list_custom_line_items

Example SQL Queries

SELECT * FROM
aws.billingconductor.list_custom_line_items;

Description

A paginated call to get a list of all custom line items (FFLIs) for the given billing period. If you don't provide a billing period, the current billing period is used.

Table Definition

Column NameColumn Data Type
billing_period Input Column

The preferred billing period to get custom line items (FFLIs).

VARCHAR
filters Input Column

A ListCustomLineItemsFilter that specifies the custom line item names and/or billing group Amazon Resource Names (ARNs) to retrieve FFLI information.

STRUCT(
"names" VARCHAR[],
"billing_groups" VARCHAR[],
"arns" VARCHAR[],
"account_ids" VARCHAR[]
)
Show child fields
filters.account_ids[]
filters.arns[]
filters.billing_groups[]
filters.names[]
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

account_id

The Amazon Web Services account in which this custom line item will be applied to.

VARCHAR
arn

The Amazon Resource Names (ARNs) for custom line items.

VARCHAR
association_size

The number of resources that are associated to the custom line item.

BIGINT
billing_group_arn

The Amazon Resource Name (ARN) that references the billing group where the custom line item applies to.

VARCHAR
charge_details

A ListCustomLineItemChargeDetails that describes the charge details of a custom line item.

STRUCT(
"flat" STRUCT(
"charge_value" DOUBLE
),
"percentage" STRUCT(
"percentage_value" DOUBLE
),
"type" VARCHAR,
"line_item_filters" STRUCT(
"attribute" VARCHAR,
"match_option" VARCHAR,
"values" VARCHAR[]
)[]
)
Show child fields
charge_details.flat

A ListCustomLineItemFlatChargeDetails that describes the charge details of a flat custom line item.

Show child fields
charge_details.flat.charge_value

The custom line item's fixed charge value in USD.

charge_details.line_item_filters[]
Show child fields
charge_details.line_item_filters[].attribute

The attribute of the line item filter. This specifies what attribute that you can filter on.

charge_details.line_item_filters[].match_option

The match criteria of the line item filter. This parameter specifies whether not to include the resource value from the billing group total cost.

charge_details.line_item_filters[].values[]
charge_details.percentage

A ListCustomLineItemPercentageChargeDetails that describes the charge details of a percentage custom line item.

Show child fields
charge_details.percentage.percentage_value

The custom line item's percentage value. This will be multiplied against the combined value of its associated resources to determine its charge value.

charge_details.type

The type of the custom line item that indicates whether the charge is a fee or credit.

creation_time

The time created.

BIGINT
currency_code

The custom line item's charge value currency. Only one of the valid values can be used.

VARCHAR
description

The custom line item's description. This is shown on the Bills page in association with the charge value.

VARCHAR
last_modified_time

The most recent time when the custom line item was modified.

BIGINT
name

The custom line item's name.

VARCHAR
product_code

The product code that's associated with the custom line item.

VARCHAR