Class: AWS.CUR
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.CUR
- Identifier:
- cur
- API Version:
- 2017-01-06
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
The AWS Cost and Usage Report API enables you to programmatically create, query, and delete AWS Cost and Usage report definitions.
AWS Cost and Usage reports track the monthly AWS costs and usage associated with your AWS account. The report contains line items for each unique combination of AWS product, usage type, and operation that your AWS account uses. You can configure the AWS Cost and Usage report to show only the data that you want, using the AWS Cost and Usage API.
Service Endpoint
The AWS Cost and Usage Report API provides the following endpoint:
-
cur.us-east-1.amazonaws.com
Sending a Request Using CUR
var cur = new AWS.CUR();
cur.deleteReportDefinition(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the CUR object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var cur = new AWS.CUR({apiVersion: '2017-01-06'});
You can also set the API version globally in AWS.config.apiVersions
using
the cur service identifier:
AWS.config.apiVersions = {
cur: '2017-01-06',
// other service API versions
};
var cur = new AWS.CUR();
Constructor Summary
-
new AWS.CUR(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary
-
deleteReportDefinition(params = {}, callback) ⇒ AWS.Request
Deletes the specified report.
-
describeReportDefinitions(params = {}, callback) ⇒ AWS.Request
Lists the AWS Cost and Usage reports available to this account.
-
putReportDefinition(params = {}, callback) ⇒ AWS.Request
Creates a new report using the description that you provide.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService