Interface CostAndUsageReportClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface CostAndUsageReportClient extends AwsClient
Service client for accessing AWS Cost and Usage Report Service. This can be created using the staticbuilder()method.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
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
deleteReportDefinition
default DeleteReportDefinitionResponse deleteReportDefinition(DeleteReportDefinitionRequest deleteReportDefinitionRequest) throws InternalErrorException, ValidationException, AwsServiceException, SdkClientException, CostAndUsageReportException
Deletes the specified report. Any tags associated with the report are also deleted.
- Parameters:
deleteReportDefinitionRequest- Deletes the specified report.- Returns:
- Result of the DeleteReportDefinition operation returned by the service.
- Throws:
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 Amazon Web Services service.SdkException- 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 class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteReportDefinition
default DeleteReportDefinitionResponse deleteReportDefinition(Consumer<DeleteReportDefinitionRequest.Builder> deleteReportDefinitionRequest) throws InternalErrorException, ValidationException, AwsServiceException, SdkClientException, CostAndUsageReportException
Deletes the specified report. Any tags associated with the report are also deleted.
This is a convenience which creates an instance of the
DeleteReportDefinitionRequest.Builderavoiding the need to create one manually viaDeleteReportDefinitionRequest.builder()- Parameters:
deleteReportDefinitionRequest- AConsumerthat will call methods onDeleteReportDefinitionRequest.Builderto create a request. Deletes the specified report.- Returns:
- Result of the DeleteReportDefinition operation returned by the service.
- Throws:
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 Amazon Web Services service.SdkException- 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 class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeReportDefinitions
default DescribeReportDefinitionsResponse describeReportDefinitions(DescribeReportDefinitionsRequest describeReportDefinitionsRequest) throws InternalErrorException, AwsServiceException, SdkClientException, CostAndUsageReportException
Lists the Amazon Web Services Cost and Usage Report available to this account.
- Parameters:
describeReportDefinitionsRequest- Requests a Amazon Web Services Cost and Usage Report list owned by the account.- Returns:
- Result of the DescribeReportDefinitions operation returned by the service.
- Throws:
InternalErrorException- An error on the server occurred during the processing of your request. Try again later.SdkException- 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 class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeReportDefinitions
default DescribeReportDefinitionsResponse describeReportDefinitions(Consumer<DescribeReportDefinitionsRequest.Builder> describeReportDefinitionsRequest) throws InternalErrorException, AwsServiceException, SdkClientException, CostAndUsageReportException
Lists the Amazon Web Services Cost and Usage Report available to this account.
This is a convenience which creates an instance of the
DescribeReportDefinitionsRequest.Builderavoiding the need to create one manually viaDescribeReportDefinitionsRequest.builder()- Parameters:
describeReportDefinitionsRequest- AConsumerthat will call methods onDescribeReportDefinitionsRequest.Builderto create a request. Requests a Amazon Web Services Cost and Usage Report list owned by the account.- Returns:
- Result of the DescribeReportDefinitions operation returned by the service.
- Throws:
InternalErrorException- An error on the server occurred during the processing of your request. Try again later.SdkException- 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 class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeReportDefinitions
default DescribeReportDefinitionsResponse describeReportDefinitions() throws InternalErrorException, AwsServiceException, SdkClientException, CostAndUsageReportException
Lists the Amazon Web Services Cost and Usage Report available to this account.
- Returns:
- Result of the DescribeReportDefinitions operation returned by the service.
- Throws:
InternalErrorException- An error on the server occurred during the processing of your request. Try again later.SdkException- 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 class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
describeReportDefinitions(DescribeReportDefinitionsRequest), AWS API Documentation
-
describeReportDefinitionsPaginator
default DescribeReportDefinitionsIterable describeReportDefinitionsPaginator() throws InternalErrorException, AwsServiceException, SdkClientException, CostAndUsageReportException
This is a variant of
describeReportDefinitions(software.amazon.awssdk.services.costandusagereport.model.DescribeReportDefinitionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.costandusagereport.paginators.DescribeReportDefinitionsIterable responses = client.describeReportDefinitionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.costandusagereport.paginators.DescribeReportDefinitionsIterable responses = client .describeReportDefinitionsPaginator(request); for (software.amazon.awssdk.services.costandusagereport.model.DescribeReportDefinitionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.costandusagereport.paginators.DescribeReportDefinitionsIterable responses = client.describeReportDefinitionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeReportDefinitions(software.amazon.awssdk.services.costandusagereport.model.DescribeReportDefinitionsRequest)operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalErrorException- An error on the server occurred during the processing of your request. Try again later.SdkException- 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 class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
describeReportDefinitionsPaginator(DescribeReportDefinitionsRequest), AWS API Documentation
-
describeReportDefinitionsPaginator
default DescribeReportDefinitionsIterable describeReportDefinitionsPaginator(DescribeReportDefinitionsRequest describeReportDefinitionsRequest) throws InternalErrorException, AwsServiceException, SdkClientException, CostAndUsageReportException
This is a variant of
describeReportDefinitions(software.amazon.awssdk.services.costandusagereport.model.DescribeReportDefinitionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.costandusagereport.paginators.DescribeReportDefinitionsIterable responses = client.describeReportDefinitionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.costandusagereport.paginators.DescribeReportDefinitionsIterable responses = client .describeReportDefinitionsPaginator(request); for (software.amazon.awssdk.services.costandusagereport.model.DescribeReportDefinitionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.costandusagereport.paginators.DescribeReportDefinitionsIterable responses = client.describeReportDefinitionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeReportDefinitions(software.amazon.awssdk.services.costandusagereport.model.DescribeReportDefinitionsRequest)operation.- Parameters:
describeReportDefinitionsRequest- Requests a Amazon Web Services Cost and Usage Report list owned by the account.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalErrorException- An error on the server occurred during the processing of your request. Try again later.SdkException- 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 class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeReportDefinitionsPaginator
default DescribeReportDefinitionsIterable describeReportDefinitionsPaginator(Consumer<DescribeReportDefinitionsRequest.Builder> describeReportDefinitionsRequest) throws InternalErrorException, AwsServiceException, SdkClientException, CostAndUsageReportException
This is a variant of
describeReportDefinitions(software.amazon.awssdk.services.costandusagereport.model.DescribeReportDefinitionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.costandusagereport.paginators.DescribeReportDefinitionsIterable responses = client.describeReportDefinitionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.costandusagereport.paginators.DescribeReportDefinitionsIterable responses = client .describeReportDefinitionsPaginator(request); for (software.amazon.awssdk.services.costandusagereport.model.DescribeReportDefinitionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.costandusagereport.paginators.DescribeReportDefinitionsIterable responses = client.describeReportDefinitionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeReportDefinitions(software.amazon.awssdk.services.costandusagereport.model.DescribeReportDefinitionsRequest)operation.
This is a convenience which creates an instance of the
DescribeReportDefinitionsRequest.Builderavoiding the need to create one manually viaDescribeReportDefinitionsRequest.builder()- Parameters:
describeReportDefinitionsRequest- AConsumerthat will call methods onDescribeReportDefinitionsRequest.Builderto create a request. Requests a Amazon Web Services Cost and Usage Report list owned by the account.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
InternalErrorException- An error on the server occurred during the processing of your request. Try again later.SdkException- 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 class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ResourceNotFoundException, InternalErrorException, ValidationException, AwsServiceException, SdkClientException, CostAndUsageReportException
Lists the tags associated with the specified report definition.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
ResourceNotFoundException- The specified report (ReportName) in the request doesn't exist.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 Amazon Web Services service.SdkException- 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 class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ResourceNotFoundException, InternalErrorException, ValidationException, AwsServiceException, SdkClientException, CostAndUsageReportException
Lists the tags associated with the specified report definition.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
ResourceNotFoundException- The specified report (ReportName) in the request doesn't exist.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 Amazon Web Services service.SdkException- 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 class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
modifyReportDefinition
default ModifyReportDefinitionResponse modifyReportDefinition(ModifyReportDefinitionRequest modifyReportDefinitionRequest) throws InternalErrorException, ValidationException, AwsServiceException, SdkClientException, CostAndUsageReportException
Allows you to programmatically update your report preferences.
- Parameters:
modifyReportDefinitionRequest-- Returns:
- Result of the ModifyReportDefinition operation returned by the service.
- Throws:
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 Amazon Web Services service.SdkException- 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 class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
modifyReportDefinition
default ModifyReportDefinitionResponse modifyReportDefinition(Consumer<ModifyReportDefinitionRequest.Builder> modifyReportDefinitionRequest) throws InternalErrorException, ValidationException, AwsServiceException, SdkClientException, CostAndUsageReportException
Allows you to programmatically update your report preferences.
This is a convenience which creates an instance of the
ModifyReportDefinitionRequest.Builderavoiding the need to create one manually viaModifyReportDefinitionRequest.builder()- Parameters:
modifyReportDefinitionRequest- AConsumerthat will call methods onModifyReportDefinitionRequest.Builderto create a request.- Returns:
- Result of the ModifyReportDefinition operation returned by the service.
- Throws:
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 Amazon Web Services service.SdkException- 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 class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putReportDefinition
default PutReportDefinitionResponse putReportDefinition(PutReportDefinitionRequest putReportDefinitionRequest) throws DuplicateReportNameException, ReportLimitReachedException, InternalErrorException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, CostAndUsageReportException
Creates a new report using the description that you provide.
- Parameters:
putReportDefinitionRequest- Creates a Cost and Usage Report.- Returns:
- Result of the PutReportDefinition operation returned by the service.
- Throws:
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 Amazon Web Services service.ResourceNotFoundException- The specified report (ReportName) in the request doesn't exist.SdkException- 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 class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putReportDefinition
default PutReportDefinitionResponse putReportDefinition(Consumer<PutReportDefinitionRequest.Builder> putReportDefinitionRequest) throws DuplicateReportNameException, ReportLimitReachedException, InternalErrorException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, CostAndUsageReportException
Creates a new report using the description that you provide.
This is a convenience which creates an instance of the
PutReportDefinitionRequest.Builderavoiding the need to create one manually viaPutReportDefinitionRequest.builder()- Parameters:
putReportDefinitionRequest- AConsumerthat will call methods onPutReportDefinitionRequest.Builderto create a request. Creates a Cost and Usage Report.- Returns:
- Result of the PutReportDefinition operation returned by the service.
- Throws:
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 Amazon Web Services service.ResourceNotFoundException- The specified report (ReportName) in the request doesn't exist.SdkException- 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 class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ResourceNotFoundException, InternalErrorException, ValidationException, AwsServiceException, SdkClientException, CostAndUsageReportException
Associates a set of tags with a report definition.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
ResourceNotFoundException- The specified report (ReportName) in the request doesn't exist.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 Amazon Web Services service.SdkException- 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 class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ResourceNotFoundException, InternalErrorException, ValidationException, AwsServiceException, SdkClientException, CostAndUsageReportException
Associates a set of tags with a report definition.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
ResourceNotFoundException- The specified report (ReportName) in the request doesn't exist.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 Amazon Web Services service.SdkException- 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 class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ResourceNotFoundException, InternalErrorException, ValidationException, AwsServiceException, SdkClientException, CostAndUsageReportException
Disassociates a set of tags from a report definition.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
ResourceNotFoundException- The specified report (ReportName) in the request doesn't exist.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 Amazon Web Services service.SdkException- 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 class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ResourceNotFoundException, InternalErrorException, ValidationException, AwsServiceException, SdkClientException, CostAndUsageReportException
Disassociates a set of tags from a report definition.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
ResourceNotFoundException- The specified report (ReportName) in the request doesn't exist.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 Amazon Web Services service.SdkException- 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 class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
create
static CostAndUsageReportClient create()
Create aCostAndUsageReportClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static CostAndUsageReportClientBuilder builder()
Create a builder that can be used to configure and create aCostAndUsageReportClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default CostAndUsageReportServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-