CostExplorer#
Client#
- class CostExplorer.Client#
A low-level client representing AWS Cost Explorer Service
You can use the Cost Explorer API to programmatically query your cost and usage data. You can query for aggregated data such as total monthly costs or total daily usage. You can also query for granular data. This might include the number of daily write operations for Amazon DynamoDB database tables in your production environment.
Service Endpoint
The Cost Explorer API provides the following endpoint:
https://ce.us-east-1.amazonaws.com
For information about the costs that are associated with the Cost Explorer API, see Amazon Web Services Cost Management Pricing.
client = session.create_client('ce')
These are the available methods:
- can_paginate
- close
- create_anomaly_monitor
- create_anomaly_subscription
- create_cost_category_definition
- delete_anomaly_monitor
- delete_anomaly_subscription
- delete_cost_category_definition
- describe_cost_category_definition
- get_anomalies
- get_anomaly_monitors
- get_anomaly_subscriptions
- get_approximate_usage_records
- get_commitment_purchase_analysis
- get_cost_and_usage
- get_cost_and_usage_with_resources
- get_cost_categories
- get_cost_forecast
- get_dimension_values
- get_paginator
- get_reservation_coverage
- get_reservation_purchase_recommendation
- get_reservation_utilization
- get_rightsizing_recommendation
- get_savings_plan_purchase_recommendation_details
- get_savings_plans_coverage
- get_savings_plans_purchase_recommendation
- get_savings_plans_utilization
- get_savings_plans_utilization_details
- get_tags
- get_usage_forecast
- get_waiter
- list_commitment_purchase_analyses
- list_cost_allocation_tag_backfill_history
- list_cost_allocation_tags
- list_cost_category_definitions
- list_savings_plans_purchase_recommendation_generation
- list_tags_for_resource
- provide_anomaly_feedback
- start_commitment_purchase_analysis
- start_cost_allocation_tag_backfill
- start_savings_plans_purchase_recommendation_generation
- tag_resource
- untag_resource
- update_anomaly_monitor
- update_anomaly_subscription
- update_cost_allocation_tags_status
- update_cost_category_definition
Client Exceptions#
Client exceptions are available on a client instance via the exceptions
property. For more detailed instructions and examples on the exact usage of client exceptions, see the error handling user guide.
The available client exceptions are:
- AnalysisNotFoundException
- BackfillLimitExceededException
- BillExpirationException
- DataUnavailableException
- GenerationExistsException
- InvalidNextTokenException
- LimitExceededException
- RequestChangedException
- ResourceNotFoundException
- ServiceQuotaExceededException
- TooManyTagsException
- UnknownMonitorException
- UnknownSubscriptionException
- UnresolvableUsageUnitException