Skip to main content

commitment_purchase_analyses

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

Overview

Namecommitment_purchase_analyses
TypeResource
Idaws.ce.commitment_purchase_analyses

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
analysis_completion_timestringThe period of time that you want the usage and costs for. (pattern: <code>^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$</code>)
analysis_idstringThe analysis ID that's associated with the commitment purchase analysis. (pattern: <code>^[\S\s]{8}-[\S\s]{4}-[\S\s]{4}-[\S\s]{4}-[\S\s]{12}$</code>)
analysis_started_timestringThe period of time that you want the usage and costs for. (pattern: <code>^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$</code>)
analysis_statusstringThe status of the analysis. (SUCCEEDED, PROCESSING, FAILED)
commitment_purchase_analysis_configurationobjectThe configuration for the commitment purchase analysis.
error_codestringThe error code used for the analysis. (NO_USAGE_FOUND, INTERNAL_FAILURE, INVALID_SAVINGS_PLANS_TO_ADD, INVALID_SAVINGS_PLANS_TO_EXCLUDE, INVALID_ACCOUNT_ID)
estimated_completion_timestringThe period of time that you want the usage and costs for. (pattern: <code>^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_commitment_purchase_analysesselectregionLists the commitment purchase analyses for your account.

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

Lists the commitment purchase analyses for your account.

SELECT
analysis_completion_time,
analysis_id,
analysis_started_time,
analysis_status,
commitment_purchase_analysis_configuration,
error_code,
estimated_completion_time
FROM aws.ce.commitment_purchase_analyses
WHERE region = '{{ region }}' -- required
;