Skip to content

aws.billingconductor.list_custom_line_item_versions

Example SQL Queries

SELECT * FROM
aws.billingconductor.list_custom_line_item_versions
WHERE
"arn" = 'VALUE';

Description

A paginated call to get a list of all custom line item versions.

Table Definition

Column NameColumn Data Type
arn Required Input Column

A list of custom line item Amazon Resource Names (ARNs) to retrieve information.

VARCHAR
filters Input Column

A ListCustomLineItemVersionsFilter that specifies the billing period range in which the custom line item versions are applied.

STRUCT(
"billing_period_range" STRUCT(
"start_billing_period" VARCHAR,
"end_billing_period" VARCHAR
)
)
Show child fields
filters.billing_period_range

The billing period range in which the custom line item version is applied.

Show child fields
filters.billing_period_range.end_billing_period

The exclusive end billing period that defines a billing period range where a custom line item version is applied.

filters.billing_period_range.start_billing_period

The inclusive start billing period that defines a billing period range where a custom line item version is applied.

_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
association_size

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

BIGINT
billing_group_arn

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

VARCHAR
charge_details

A representation of 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 when the custom line item version was created.

BIGINT
currency_code

The charge value currency of the custom line item.

VARCHAR
description

The description of the custom line item.

VARCHAR
end_billing_period

The end billing period of the custom line item version.

VARCHAR
last_modified_time

The most recent time that the custom line item version was modified.

BIGINT
name

The name of the custom line item.

VARCHAR
product_code

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

VARCHAR
start_billing_period

The start billing period of the custom line item version.

VARCHAR
start_time

The inclusive start time.

BIGINT