- Navigation GuideYou are on a Client landing page. Commands (operations) are listed on this page. The Client constructor type is linked at the bottom.
CostAndUsageReportServiceClient
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
Installation
npm install @aws-sdk/client-cost-and-usage-report-service
yarn add @aws-sdk/client-cost-and-usage-report-service
pnpm add @aws-sdk/client-cost-and-usage-report-service
CostAndUsageReportServiceClient Operations
Command | Summary |
---|
Command | Summary |
---|---|
DeleteReportDefinitionCommand | Deletes the specified report. Any tags associated with the report are also deleted. |
DescribeReportDefinitionsCommand | Lists the Amazon Web Services Cost and Usage Report available to this account. |
ListTagsForResourceCommand | Lists the tags associated with the specified report definition. |
ModifyReportDefinitionCommand | Allows you to programmatically update your report preferences. |
PutReportDefinitionCommand | Creates a new report using the description that you provide. |
TagResourceCommand | Associates a set of tags with a report definition. |
UntagResourceCommand | Disassociates a set of tags from a report definition. |
CostAndUsageReportServiceClient Configuration
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
defaultsMode Optional | DefaultsMode | Provider<DefaultsMode> | The @smithy/smithy-client#DefaultsMode that will be used to determine how certain default configuration options are resolved in the SDK. |
disableHostPrefix Optional | boolean | Disable dynamically changing the endpoint of the client based on the hostPrefix trait of an operation. |
extensions Optional | RuntimeExtension[] | Optional extensions |
logger Optional | Logger | Optional logger for logging debug/info/warn/error. |
maxAttempts Optional | number | Provider<number> | Value for how many times a request will be made at most in case of retry. |
profile Optional | string | Setting a client profile is similar to setting a value for the AWS_PROFILE environment variable. Setting a profile on a client in code only affects the single client instance, unlike AWS_PROFILE.When set, and only for environments where an AWS configuration file exists, fields configurable by this file will be retrieved from the specified profile within that file. Conflicting code configuration and environment variables will still have higher priority.For client credential resolution that involves checking the AWS configuration file, the client's profile (this value) will be used unless a different profile is set in the credential provider options. |
region Optional | string | Provider<string> | The AWS region to which this client will send requests |
requestHandler Optional | __HttpHandlerUserInput | The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs. |
retryMode Optional | string | Provider<string> | Specifies which retry algorithm to use. |
useDualstackEndpoint Optional | boolean | Provider<boolean> | Enables IPv6/IPv4 dualstack endpoint. |
useFipsEndpoint Optional | boolean | Provider<boolean> | Enables FIPS compatible endpoints. |
Additional config fields are described in the full configuration type: CostAndUsageReportServiceClientConfig