Skip to main content

commitment_purchase_analysis

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

Overview

Namecommitment_purchase_analysis
TypeResource
Idaws.ce.commitment_purchase_analysis

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
analysis_completion_timestringThe completion time of the analysis. (pattern: <code>^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(([+-]\d\d:\d\d)|Z)$</code>)
analysis_detailsobjectDetails about the analysis.
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 start time of the analysis. (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 estimated time for when the analysis will complete. (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
get_commitment_purchase_analysisselectregionRetrieves a commitment purchase analysis result based on the AnalysisId.
start_commitment_purchase_analysisexecregion, CommitmentPurchaseAnalysisConfigurationSpecifies the parameters of a planned commitment purchase and starts the generation of the analysis. This enables you to estimate the cost, coverage, and utilization impact of your planned commitment purchases.

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 a commitment purchase analysis result based on the AnalysisId.

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

Lifecycle Methods

Specifies the parameters of a planned commitment purchase and starts the generation of the analysis. This enables you to estimate the cost, coverage, and utilization impact of your planned commitment purchases.

EXEC aws.ce.commitment_purchase_analysis.start_commitment_purchase_analysis
@region='{{ region }}' --required
@@json=
'{
"CommitmentPurchaseAnalysisConfiguration": "{{ CommitmentPurchaseAnalysisConfiguration }}"
}'
;