CostAndUsageReportClient

You can use the Amazon Web Services Cost and Usage Report API to programmatically create, query, and delete Amazon Web Services Cost and Usage Report definitions.

Amazon Web Services Cost and Usage Report track the monthly Amazon Web Services costs and usage associated with your Amazon Web Services account. The report contains line items for each unique combination of Amazon Web Services product, usage type, and operation that your Amazon Web Services account uses. You can configure the Amazon Web Services Cost and Usage Report to show only the data that you want, using the Amazon Web Services Cost and Usage Report API.

Service Endpoint

The Amazon Web Services Cost and Usage Report API provides the following endpoint:

  • cur.us-east-1.amazonaws.com

Properties

Link copied to clipboard

CostAndUsageReportClient's configuration

Functions

Link copied to clipboard

Deletes the specified report. Any tags associated with the report are also deleted.

Link copied to clipboard
abstract suspend fun describeReportDefinitions(input: DescribeReportDefinitionsRequest = DescribeReportDefinitionsRequest { }): DescribeReportDefinitionsResponse

Lists the Amazon Web Services Cost and Usage Report available to this account.

Link copied to clipboard

Lists the tags associated with the specified report definition.

Link copied to clipboard

Allows you to programmatically update your report preferences.

Link copied to clipboard

Creates a new report using the description that you provide.

Link copied to clipboard
abstract suspend fun tagResource(input: TagResourceRequest): TagResourceResponse

Associates a set of tags with a report definition.

Link copied to clipboard

Disassociates a set of tags from a report definition.

Inherited functions

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard

Deletes the specified report. Any tags associated with the report are also deleted.

Link copied to clipboard

Lists the Amazon Web Services Cost and Usage Report available to this account.

Link copied to clipboard

Lists the tags associated with the specified report definition.

Link copied to clipboard

Allows you to programmatically update your report preferences.

Link copied to clipboard

Creates a new report using the description that you provide.

Link copied to clipboard

Associates a set of tags with a report definition.

Link copied to clipboard

Disassociates a set of tags from a report definition.

Link copied to clipboard

Create a copy of the client with one or more configuration values overridden. This method allows the caller to perform scoped config overrides for one or more client operations.