Skip to main content

cost_estimations

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

Overview

Namecost_estimations
TypeResource
Idaws.devops_guru.cost_estimations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
costnumber (double)The total estimated monthly cost to analyze the active resources for this resource.
countintegerThe number of active resources analyzed for this service to create a monthly cost estimate.
statestringThe state of the resource. The resource is ACTIVE if it produces metrics, events, or logs within an hour, otherwise it is INACTIVE. You pay for the number of active Amazon Web Services resource hours analyzed for each resource. Inactive resources are not charged. (ACTIVE, INACTIVE)
typestringThe type of the Amazon Web Services resource. (pattern: <code>^[a-zA-Z]+[a-zA-Z0-9-_:]*$</code>)
unit_costnumber (double)The price per hour to analyze the resources in the service. For more information, see Estimate your Amazon DevOps Guru costs and Amazon DevOps Guru pricing.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_cost_estimationselectregionNextTokenReturns an estimate of the monthly cost for DevOps Guru to analyze your Amazon Web Services resources. For more information, see Estimate your Amazon DevOps Guru costs and Amazon DevOps Guru pricing.

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)
NextTokenstringThe pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

SELECT examples

Returns an estimate of the monthly cost for DevOps Guru to analyze your Amazon Web Services resources. For more information, see Estimate your Amazon DevOps Guru costs and Amazon DevOps Guru pricing.

SELECT
cost,
count,
state,
type,
unit_cost
FROM aws.devops_guru.cost_estimations
WHERE region = '{{ region }}' -- required
AND NextToken = '{{ NextToken }}'
;