aws ce
You can use the Cost Explorer API to programmatically query your cost and usage data. AWS CLI reference
47 commands Its page in the AWS CLI reference
Commands
create-anomaly-monitorCreates a new cost anomaly detection monitor with the requested type and monitor specification.create-anomaly-subscriptionAdds an alert subscription to a cost anomaly detection monitor.create-cost-category-definitionCreates a new cost category with the requested name and rules.delete-anomaly-monitorDeletes a cost anomaly monitor.delete-anomaly-subscriptionDeletes a cost anomaly subscription.delete-cost-category-definitionDeletes a cost category.describe-cost-category-definitionReturns the name, Amazon Resource Name (ARN), rules, definition, and effective dates of a cost category that's defined in the account.get-anomaliesRetrieves all of the cost anomalies detected on your account during the time period that's specified by the DateInterval object.get-anomaly-monitorsRetrieves the cost anomaly monitor definitions for your account.get-anomaly-subscriptionsRetrieves the cost anomaly subscription objects for your account.get-approximate-usage-recordsRetrieves estimated usage records for hourly granularity or resource-level data at daily granularity.get-commitment-purchase-analysisRetrieves a commitment purchase analysis result based on the AnalysisId.get-cost-and-usageRetrieves cost and usage metrics for your account.get-cost-and-usage-comparisonsRetrieves cost and usage comparisons for your account between two periods within the last 13 months.get-cost-and-usage-with-resourcesRetrieves cost and usage metrics with resources for your account.get-cost-categoriesRetrieves an array of cost category names and values incurred cost.get-cost-comparison-driversRetrieves key factors driving cost changes between two time periods within the last 13 months, such as usage changes, discount changes, and commitment-based savings.get-cost-forecastRetrieves a forecast for how much Amazon Web Services predicts that you will spend over the forecast time period that you select, based on your past costs.get-dimension-valuesRetrieves all available filter values for a specified filter over a period of time.get-reservation-coverageRetrieves the reservation coverage for your account, which you can use to see how much of your Amazon Elastic Compute Cloud, Amazon ElastiCache, Amazon Relational Database Service, or Amazon Redshift usage is covered by a reservation.get-reservation-purchase-recommendationGets recommendations for reservation purchases.get-reservation-utilizationRetrieves the reservation utilization for your account.get-rightsizing-recommendationCreates recommendations that help you save cost by identifying idle and underutilized Amazon EC2 instances.get-savings-plan-purchase-recommendation-detailsRetrieves the details for a Savings Plan recommendation.get-savings-plans-coverageRetrieves the Savings Plans covered for your account.get-savings-plans-purchase-recommendationRetrieves the Savings Plans recommendations for your account.get-savings-plans-utilizationRetrieves the Savings Plans utilization for your account across date ranges with daily or monthly granularity.get-savings-plans-utilization-detailsRetrieves attribute data along with aggregate utilization and savings data for a given time period.get-tagsQueries for available tag keys and tag values for a specified period.get-usage-forecastRetrieves a forecast for how much Amazon Web Services predicts that you will use over the forecast time period that you select, based on your past usage.list-commitment-purchase-analysesLists the commitment purchase analyses for your account.list-cost-allocation-tag-backfill-historyRetrieves a list of your historical cost allocation tag backfill requests.list-cost-allocation-tagsGet a list of cost allocation tags.list-cost-category-definitionsReturns the name, Amazon Resource Name (ARN), NumberOfRules and effective dates of all cost categories defined in the account.list-cost-category-resource-associationsReturns resource associations of all cost categories defined in the account.list-savings-plans-purchase-recommendation-generationRetrieves a list of your historical recommendation generations within the past 30 days.list-tags-for-resourceReturns a list of resource tags associated with the resource specified by the Amazon Resource Name (ARN).provide-anomaly-feedbackModifies the feedback property of a given cost anomaly.start-commitment-purchase-analysisSpecifies the parameters of a planned commitment purchase and starts the generation of the analysis.start-cost-allocation-tag-backfillRequest a cost allocation tag backfill.start-savings-plans-purchase-recommendation-generationRequests a Savings Plans recommendation generation.tag-resourceAn API operation for adding one or more tags (key-value pairs) to a resource.untag-resourceRemoves one or more tags from a resource.update-anomaly-monitorUpdates an existing cost anomaly monitor.update-anomaly-subscriptionUpdates an existing cost anomaly subscription.update-cost-allocation-tags-statusUpdates status for cost allocation tags in bulk, with maximum batch size of 20.update-cost-category-definitionUpdates an existing cost category.