billing_group_cost_reports
Creates, updates, deletes, gets or lists a billing_group_cost_reports resource.
Overview
| Name | billing_group_cost_reports |
| Type | Resource |
| Id | aws.billingconductor.billing_group_cost_reports |
Fields
The following fields are returned by SELECT queries:
- get_billing_group_cost_report
| Name | Datatype | Description |
|---|---|---|
billing_group_cost_report_results | array | The list of margin summary reports. |
next_token | string | The pagination token used on subsequent calls to get reports. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_billing_group_cost_report | select | region | Retrieves the margin summary report, which includes the Amazon Web Services cost and charged amount (pro forma cost) by Amazon Web Services service for a specific billing group. | |
list_billing_group_cost_reports | exec | region | A paginated call to retrieve a summary report of actual Amazon Web Services charges and the calculated Amazon Web Services charges based on the associated pricing plan of a billing group. |
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
- get_billing_group_cost_report
Retrieves the margin summary report, which includes the Amazon Web Services cost and charged amount (pro forma cost) by Amazon Web Services service for a specific billing group.
SELECT
billing_group_cost_report_results,
next_token
FROM aws.billingconductor.billing_group_cost_reports
WHERE region = '{{ region }}' -- required
;
Lifecycle Methods
- list_billing_group_cost_reports
A paginated call to retrieve a summary report of actual Amazon Web Services charges and the calculated Amazon Web Services charges based on the associated pricing plan of a billing group.
EXEC aws.billingconductor.billing_group_cost_reports.list_billing_group_cost_reports
@region='{{ region }}' --required
@@json=
'{
"BillingPeriod": "{{ BillingPeriod }}",
"MaxResults": {{ MaxResults }},
"NextToken": "{{ NextToken }}",
"Filters": "{{ Filters }}"
}'
;