Skip to main content

bill_estimates

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

Overview

Namebill_estimates
TypeResource
Idaws.bcm_pricing_calculator.bill_estimates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the retrieved bill estimate. (pattern: <code>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}</code>)
namestringThe name of the retrieved bill estimate. (pattern: <code>[a-zA-Z0-9-]+</code>)
bill_intervalobjectThe time period covered by the bill estimate.
cost_category_group_sharing_preference_arnstringThe arn of the cost category used in the reserved and prioritized group sharing. (pattern: <code>arn:aws[-a-z0-9]*:ce::[0-9]{12}:costcategory/[a-f0-9-]{36}</code>)
cost_category_group_sharing_preference_effective_datestring (date-time)Timestamp of the effective date of the cost category used in the group sharing settings.
cost_summaryobjectA summary of the estimated costs.
created_atstring (date-time)The timestamp when the bill estimate was created.
expires_atstring (date-time)The timestamp when the bill estimate will expire.
failure_messagestringAn error message if the bill estimate retrieval failed.
group_sharing_preferencestringThe setting for the reserved instance and savings plan group sharing used in this estimate. (OPEN, PRIORITIZED, RESTRICTED)
statusstringThe current status of the bill estimate. (IN_PROGRESS, COMPLETE, FAILED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_bill_estimateselectregionRetrieves details of a specific bill estimate.
list_bill_estimatesselectregionLists all bill estimates for the account.
create_bill_estimateinsertregion, billScenarioId, nameCreate a Bill estimate from a Bill scenario. In the Bill scenario you can model usage addition, usage changes, and usage removal. You can also model commitment addition and commitment removal. After all changes in a Bill scenario is made satisfactorily, you can call this API with a Bill scenario ID to generate the Bill estimate. Bill estimate calculates the pre-tax cost for your consolidated billing family, incorporating all modeled usage and commitments alongside existing usage and commitments from your most recent completed anniversary bill, with any applicable discounts applied.
update_bill_estimateupdateregion, identifierUpdates an existing bill estimate.
delete_bill_estimatedeleteregionDeletes an existing bill estimate.

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

Retrieves details of a specific bill estimate.

SELECT
id,
name,
bill_interval,
cost_category_group_sharing_preference_arn,
cost_category_group_sharing_preference_effective_date,
cost_summary,
created_at,
expires_at,
failure_message,
group_sharing_preference,
status
FROM aws.bcm_pricing_calculator.bill_estimates
WHERE region = '{{ region }}' -- required
;

INSERT examples

Create a Bill estimate from a Bill scenario. In the Bill scenario you can model usage addition, usage changes, and usage removal. You can also model commitment addition and commitment removal. After all changes in a Bill scenario is made satisfactorily, you can call this API with a Bill scenario ID to generate the Bill estimate. Bill estimate calculates the pre-tax cost for your consolidated billing family, incorporating all modeled usage and commitments alongside existing usage and commitments from your most recent completed anniversary bill, with any applicable discounts applied.

INSERT INTO aws.bcm_pricing_calculator.bill_estimates (
billScenarioId,
name,
clientToken,
tags,
region
)
SELECT
'{{ billScenarioId }}' /* required */,
'{{ name }}' /* required */,
'{{ clientToken }}',
'{{ tags }}',
'{{ region }}'
RETURNING
id,
name,
bill_interval,
cost_category_group_sharing_preference_arn,
cost_category_group_sharing_preference_effective_date,
cost_summary,
created_at,
expires_at,
failure_message,
group_sharing_preference,
status
;

UPDATE examples

Updates an existing bill estimate.

UPDATE aws.bcm_pricing_calculator.bill_estimates
SET
identifier = '{{ identifier }}',
name = '{{ name }}',
expiresAt = '{{ expiresAt }}'
WHERE
region = '{{ region }}' --required
AND identifier = '{{ identifier }}' --required
RETURNING
id,
name,
bill_interval,
cost_category_group_sharing_preference_arn,
cost_category_group_sharing_preference_effective_date,
cost_summary,
created_at,
expires_at,
failure_message,
group_sharing_preference,
status;

DELETE examples

Deletes an existing bill estimate.

DELETE FROM aws.bcm_pricing_calculator.bill_estimates
WHERE region = '{{ region }}' --required
;