@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSCostAndUsageReportClient extends AmazonWebServiceClient implements AWSCostAndUsageReport
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
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Constructor and Description |
---|
AWSCostAndUsageReportClient()
Deprecated.
|
AWSCostAndUsageReportClient(AWSCredentials awsCredentials)
Deprecated.
use
AwsClientBuilder.withCredentials(AWSCredentialsProvider) for example:
AWSCostAndUsageReportClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(awsCredentials)).build(); |
AWSCostAndUsageReportClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
|
AWSCostAndUsageReportClient(AWSCredentialsProvider awsCredentialsProvider)
Deprecated.
|
AWSCostAndUsageReportClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
|
AWSCostAndUsageReportClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector)
|
AWSCostAndUsageReportClient(ClientConfiguration clientConfiguration)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static AWSCostAndUsageReportClientBuilder |
builder() |
DeleteReportDefinitionResult |
deleteReportDefinition(DeleteReportDefinitionRequest request)
Deletes the specified report.
|
DescribeReportDefinitionsResult |
describeReportDefinitions(DescribeReportDefinitionsRequest request)
Lists the AWS Cost and Usage reports available to this account.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
ModifyReportDefinitionResult |
modifyReportDefinition(ModifyReportDefinitionRequest request)
Allows you to programatically update your report preferences.
|
PutReportDefinitionResult |
putReportDefinition(PutReportDefinitionRequest request)
Creates a new report using the description that you provide.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setEndpoint, setRegion, shutdown
@Deprecated public AWSCostAndUsageReportClient()
AWSCostAndUsageReportClientBuilder.defaultClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain
@Deprecated public AWSCostAndUsageReportClient(ClientConfiguration clientConfiguration)
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration
- The client configuration options controlling how this client connects to AWS Cost and Usage Report Service
(ex: proxy settings, retry counts, etc.).DefaultAWSCredentialsProviderChain
@Deprecated public AWSCostAndUsageReportClient(AWSCredentials awsCredentials)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
for example:
AWSCostAndUsageReportClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(awsCredentials)).build();
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.@Deprecated public AWSCostAndUsageReportClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.clientConfiguration
- The client configuration options controlling how this client connects to AWS Cost and Usage Report Service
(ex: proxy settings, retry counts, etc.).@Deprecated public AWSCostAndUsageReportClient(AWSCredentialsProvider awsCredentialsProvider)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.@Deprecated public AWSCostAndUsageReportClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- The client configuration options controlling how this client connects to AWS Cost and Usage Report Service
(ex: proxy settings, retry counts, etc.).@Deprecated public AWSCostAndUsageReportClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, RequestMetricCollector requestMetricCollector)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
and
AwsClientBuilder.withMetricsCollector(RequestMetricCollector)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- The client configuration options controlling how this client connects to AWS Cost and Usage Report Service
(ex: proxy settings, retry counts, etc.).requestMetricCollector
- optional request metric collectorpublic static AWSCostAndUsageReportClientBuilder builder()
public DeleteReportDefinitionResult deleteReportDefinition(DeleteReportDefinitionRequest request)
Deletes the specified report.
deleteReportDefinition
in interface AWSCostAndUsageReport
deleteReportDefinitionRequest
- Deletes the specified report.InternalErrorException
- An error on the server occurred during the processing of your request. Try again later.ValidationException
- The input fails to satisfy the constraints specified by an AWS service.public DescribeReportDefinitionsResult describeReportDefinitions(DescribeReportDefinitionsRequest request)
Lists the AWS Cost and Usage reports available to this account.
describeReportDefinitions
in interface AWSCostAndUsageReport
describeReportDefinitionsRequest
- Requests a list of AWS Cost and Usage reports owned by the account.InternalErrorException
- An error on the server occurred during the processing of your request. Try again later.public ModifyReportDefinitionResult modifyReportDefinition(ModifyReportDefinitionRequest request)
Allows you to programatically update your report preferences.
modifyReportDefinition
in interface AWSCostAndUsageReport
modifyReportDefinitionRequest
- InternalErrorException
- An error on the server occurred during the processing of your request. Try again later.ValidationException
- The input fails to satisfy the constraints specified by an AWS service.public PutReportDefinitionResult putReportDefinition(PutReportDefinitionRequest request)
Creates a new report using the description that you provide.
putReportDefinition
in interface AWSCostAndUsageReport
putReportDefinitionRequest
- Creates a Cost and Usage Report.DuplicateReportNameException
- A report with the specified name already exists in the account. Specify a different report name.ReportLimitReachedException
- This account already has five reports defined. To define a new report, you must delete an existing
report.InternalErrorException
- An error on the server occurred during the processing of your request. Try again later.ValidationException
- The input fails to satisfy the constraints specified by an AWS service.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata
in interface AWSCostAndUsageReport
request
- The originally executed requestCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.