AutoCloseable@Generated("software.amazon.awssdk:codegen") public interface CostandUsageReportClient extends AutoCloseable
builder() method.
All public APIs for AWS Cost and Usage Report service| Modifier and Type | Field | Description |
|---|---|---|
static String |
SERVICE_NAME |
| Modifier and Type | Method | Description |
|---|---|---|
static CostandUsageReportClientBuilder |
builder() |
Create a builder that can be used to configure and create a
CostandUsageReportClient. |
static CostandUsageReportClient |
create() |
Create a
CostandUsageReportClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default DeleteReportDefinitionResponse |
deleteReportDefinition(DeleteReportDefinitionRequest deleteReportDefinitionRequest) |
Delete a specified report definition
|
default DescribeReportDefinitionsResponse |
describeReportDefinitions(DescribeReportDefinitionsRequest describeReportDefinitionsRequest) |
Describe a list of report definitions owned by the account
|
default PutReportDefinitionResponse |
putReportDefinition(PutReportDefinitionRequest putReportDefinitionRequest) |
Create a new report definition
|
static ServiceMetadata |
serviceMetadata() |
closestatic final String SERVICE_NAME
static CostandUsageReportClient create()
CostandUsageReportClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static CostandUsageReportClientBuilder builder()
CostandUsageReportClient.default DeleteReportDefinitionResponse deleteReportDefinition(DeleteReportDefinitionRequest deleteReportDefinitionRequest) throws InternalErrorException, ValidationException, SdkBaseException, SdkClientException, CostandUsageReportException
deleteReportDefinitionRequest - Request of DeleteReportDefinitionInternalErrorException - This exception is thrown on a known dependency failure.ValidationException - This exception is thrown when providing an invalid input. eg. Put a report preference with an invalid
report name, or Delete a report preference with an empty report name.SdkBaseException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc)CostandUsageReportException - Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault DescribeReportDefinitionsResponse describeReportDefinitions(DescribeReportDefinitionsRequest describeReportDefinitionsRequest) throws InternalErrorException, SdkBaseException, SdkClientException, CostandUsageReportException
describeReportDefinitionsRequest - Request of DescribeReportDefinitionsInternalErrorException - This exception is thrown on a known dependency failure.SdkBaseException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc)CostandUsageReportException - Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault PutReportDefinitionResponse putReportDefinition(PutReportDefinitionRequest putReportDefinitionRequest) throws DuplicateReportNameException, ReportLimitReachedException, InternalErrorException, ValidationException, SdkBaseException, SdkClientException, CostandUsageReportException
putReportDefinitionRequest - Request of PutReportDefinitionDuplicateReportNameException - This exception is thrown when putting a report preference with a name that already exists.ReportLimitReachedException - This exception is thrown when the number of report preference reaches max limit. The max number is 5.InternalErrorException - This exception is thrown on a known dependency failure.ValidationException - This exception is thrown when providing an invalid input. eg. Put a report preference with an invalid
report name, or Delete a report preference with an empty report name.SdkBaseException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc)CostandUsageReportException - Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typestatic ServiceMetadata serviceMetadata()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.