Learn R Programming

paws (version 0.1.12)

costexplorer: AWS Cost Explorer Service

Description

The Cost Explorer API enables you 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, such as 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 costs associated with the Cost Explorer API, see AWS Cost Management Pricing.

Usage

costexplorer(config = list())

Value

A client for the service. You can call the service's operations using syntax like svc$operation(...), where svc is the name you've assigned to the client. The available operations are listed in the Operations section.

Arguments

config

Optional configuration of credentials, endpoint, and/or region.

Service syntax

svc <- costexplorer(
  config = list(
    credentials = list(
      creds = list(
        access_key_id = "string",
        secret_access_key = "string",
        session_token = "string"
      ),
      profile = "string"
    ),
    endpoint = "string",
    region = "string"
  )
)

Operations

create_anomaly_monitorCreates a new cost anomaly detection monitor with the requested type and monitor specification
create_anomaly_subscriptionAdds a 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, 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 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_cost_and_usageRetrieves cost and usage metrics for your account
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_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
get_reservation_purchase_recommendationGets recommendations for which reservations to purchase
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_plans_coverageRetrieves the Savings Plans covered for your account
get_savings_plans_purchase_recommendationRetrieves your request parameters, Savings Plan Recommendations Summary and Details
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_cost_category_definitionsReturns the name, ARN, NumberOfRules and effective dates of all Cost Categories defined in the account
provide_anomaly_feedbackModifies the feedback property of a given cost anomaly
update_anomaly_monitorUpdates an existing cost anomaly monitor
update_anomaly_subscriptionUpdates an existing cost anomaly monitor subscription
update_cost_category_definitionUpdates an existing Cost Category

Examples

Run this code
if (FALSE) {
svc <- costexplorer()
svc$create_anomaly_monitor(
  Foo = 123
)
}

Run the code above in your browser using DataLab