AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Interface for accessing CostAndUsageReport
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
Namespace: Amazon.CostAndUsageReport
Assembly: AWSSDK.CostAndUsageReport.dll
Version: 3.x.y.z
public interface IAmazonCostAndUsageReport IAmazonService, IDisposable
The IAmazonCostAndUsageReport type exposes the following members
Name | Type | Description | |
---|---|---|---|
Paginators | Amazon.CostAndUsageReport.Model.ICostAndUsageReportPaginatorFactory |
Paginators for the service |
Name | Description | |
---|---|---|
DeleteReportDefinition(DeleteReportDefinitionRequest) |
Deletes the specified report. Any tags associated with the report are also deleted. |
|
DeleteReportDefinitionAsync(DeleteReportDefinitionRequest, CancellationToken) |
Deletes the specified report. Any tags associated with the report are also deleted. |
|
DescribeReportDefinitions(DescribeReportDefinitionsRequest) |
Lists the Amazon Web Services Cost and Usage Report available to this account. |
|
DescribeReportDefinitionsAsync(DescribeReportDefinitionsRequest, CancellationToken) |
Lists the Amazon Web Services Cost and Usage Report available to this account. |
|
DetermineServiceOperationEndpoint(AmazonWebServiceRequest) |
Returns the endpoint that will be used for a particular request. |
|
ListTagsForResource(ListTagsForResourceRequest) |
Lists the tags associated with the specified report definition. |
|
ListTagsForResourceAsync(ListTagsForResourceRequest, CancellationToken) |
Lists the tags associated with the specified report definition. |
|
ModifyReportDefinition(ModifyReportDefinitionRequest) |
Allows you to programmatically update your report preferences. |
|
ModifyReportDefinitionAsync(ModifyReportDefinitionRequest, CancellationToken) |
Allows you to programmatically update your report preferences. |
|
PutReportDefinition(PutReportDefinitionRequest) |
Creates a new report using the description that you provide. |
|
PutReportDefinitionAsync(PutReportDefinitionRequest, CancellationToken) |
Creates a new report using the description that you provide. |
|
TagResource(TagResourceRequest) |
Associates a set of tags with a report definition. |
|
TagResourceAsync(TagResourceRequest, CancellationToken) |
Associates a set of tags with a report definition. |
|
UntagResource(UntagResourceRequest) |
Disassociates a set of tags from a report definition. |
|
UntagResourceAsync(UntagResourceRequest, CancellationToken) |
Disassociates a set of tags from a report definition. |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5