Skip to main content

cost_category_resource_associations

Creates, updates, deletes, gets or lists a cost_category_resource_associations resource.

Overview

Namecost_category_resource_associations
TypeResource
Idaws.ce.cost_category_resource_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
cost_category_arnstringThe unique identifier for your cost category. (pattern: <code>arn:aws[-a-z0-9]:[a-z0-9]+:[-a-z0-9]:[0-9]{12}:[-a-zA-Z0-9/:_]+</code>)
cost_category_namestringThe unique name of the cost category. (pattern: <code>^(?! )[\p{L}\p{N}\p{Z}-_]*(?<! )$</code>)
resource_arnstringThe unique identifier for an associated resource. (pattern: <code>arn:aws[-a-z0-9]:[a-z0-9]+:[-a-z0-9]:[0-9]{12}:[-a-zA-Z0-9/:_]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_cost_category_resource_associationsselectregionReturns resource associations of all cost categories defined in the account. You have the option to use CostCategoryArn to get the association for a specific cost category. ListCostCategoryResourceAssociations supports pagination. The request can have a MaxResults range up to 100.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns resource associations of all cost categories defined in the account. You have the option to use CostCategoryArn to get the association for a specific cost category. ListCostCategoryResourceAssociations supports pagination. The request can have a MaxResults range up to 100.

SELECT
cost_category_arn,
cost_category_name,
resource_arn
FROM aws.ce.cost_category_resource_associations
WHERE region = '{{ region }}' -- required
;