cost_category_resource_associations
Creates, updates, deletes, gets or lists a cost_category_resource_associations resource.
Overview
| Name | cost_category_resource_associations |
| Type | Resource |
| Id | aws.ce.cost_category_resource_associations |
Fields
The following fields are returned by SELECT queries:
- list_cost_category_resource_associations
| Name | Datatype | Description |
|---|---|---|
cost_category_arn | string | The 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_name | string | The unique name of the cost category. (pattern: <code>^(?! )[\p{L}\p{N}\p{Z}-_]*(?<! )$</code>) |
resource_arn | string | The 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_cost_category_resource_associations | select | region | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- list_cost_category_resource_associations
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
;