CostandUsageReportService class
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
Constructors
- CostandUsageReportService({required String region, AwsClientCredentials? credentials, AwsClientCredentialsProvider? credentialsProvider, Client? client, String? endpointUrl})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → void - Closes the internal HTTP client if none was provided at creation. If a client was passed as a constructor argument, this becomes a noop.
-
deleteReportDefinition(
{String? reportName}) → Future< DeleteReportDefinitionResponse> - Deletes the specified report.
-
describeReportDefinitions(
{int? maxResults, String? nextToken}) → Future< DescribeReportDefinitionsResponse> - Lists the AWS Cost and Usage reports available to this account.
-
modifyReportDefinition(
{required ReportDefinition reportDefinition, required String reportName}) → Future< void> - Allows you to programatically update your report preferences.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
putReportDefinition(
{required ReportDefinition reportDefinition}) → Future< void> - Creates a new report using the description that you provide.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited