Interface BcmDashboardsAsyncClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.The asynchronous client performs non-blocking I/O when configured with any
SdkAsyncHttpClient
supported in the SDK. However, full non-blocking is not guaranteed as the async client may
perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API
call.
Amazon Web Services Billing and Cost Management Dashboards is a service that enables you to create, manage, and share dashboards that combine multiple visualizations of your Amazon Web Services cost and usage data. You can combine multiple data sources including Cost Explorer, Savings Plans, and Reserved Instance metrics into unified dashboards, helping you analyze spending patterns and share cost insights across your organization.
You can use the Amazon Web Services Billing and Cost Management Dashboards API to programmatically create, manage, and share dashboards. This includes creating custom dashboards, configuring widgets, managing dashboard permissions, and sharing dashboards across accounts in your organization.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that can be used to configure and create aBcmDashboardsAsyncClient
.static BcmDashboardsAsyncClient
create()
Create aBcmDashboardsAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default CompletableFuture
<CreateDashboardResponse> createDashboard
(Consumer<CreateDashboardRequest.Builder> createDashboardRequest) Creates a new dashboard that can contain multiple widgets displaying cost and usage data.default CompletableFuture
<CreateDashboardResponse> createDashboard
(CreateDashboardRequest createDashboardRequest) Creates a new dashboard that can contain multiple widgets displaying cost and usage data.default CompletableFuture
<DeleteDashboardResponse> deleteDashboard
(Consumer<DeleteDashboardRequest.Builder> deleteDashboardRequest) Deletes a specified dashboard.default CompletableFuture
<DeleteDashboardResponse> deleteDashboard
(DeleteDashboardRequest deleteDashboardRequest) Deletes a specified dashboard.default CompletableFuture
<GetDashboardResponse> getDashboard
(Consumer<GetDashboardRequest.Builder> getDashboardRequest) Retrieves the configuration and metadata of a specified dashboard, including its widgets and layout settings.default CompletableFuture
<GetDashboardResponse> getDashboard
(GetDashboardRequest getDashboardRequest) Retrieves the configuration and metadata of a specified dashboard, including its widgets and layout settings.getResourcePolicy
(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) Retrieves the resource-based policy attached to a dashboard, showing sharing configurations and permissions.getResourcePolicy
(GetResourcePolicyRequest getResourcePolicyRequest) Retrieves the resource-based policy attached to a dashboard, showing sharing configurations and permissions.default CompletableFuture
<ListDashboardsResponse> listDashboards
(Consumer<ListDashboardsRequest.Builder> listDashboardsRequest) Returns a list of all dashboards in your account.default CompletableFuture
<ListDashboardsResponse> listDashboards
(ListDashboardsRequest listDashboardsRequest) Returns a list of all dashboards in your account.default ListDashboardsPublisher
listDashboardsPaginator
(Consumer<ListDashboardsRequest.Builder> listDashboardsRequest) This is a variant oflistDashboards(software.amazon.awssdk.services.bcmdashboards.model.ListDashboardsRequest)
operation.default ListDashboardsPublisher
listDashboardsPaginator
(ListDashboardsRequest listDashboardsRequest) This is a variant oflistDashboards(software.amazon.awssdk.services.bcmdashboards.model.ListDashboardsRequest)
operation.listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Returns a list of all tags associated with a specified dashboard resource.listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) Returns a list of all tags associated with a specified dashboard resource.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationdefault CompletableFuture
<TagResourceResponse> tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds or updates tags for a specified dashboard resource.default CompletableFuture
<TagResourceResponse> tagResource
(TagResourceRequest tagResourceRequest) Adds or updates tags for a specified dashboard resource.default CompletableFuture
<UntagResourceResponse> untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes specified tags from a dashboard resource.default CompletableFuture
<UntagResourceResponse> untagResource
(UntagResourceRequest untagResourceRequest) Removes specified tags from a dashboard resource.default CompletableFuture
<UpdateDashboardResponse> updateDashboard
(Consumer<UpdateDashboardRequest.Builder> updateDashboardRequest) Updates an existing dashboard's properties, including its name, description, and widget configurations.default CompletableFuture
<UpdateDashboardResponse> updateDashboard
(UpdateDashboardRequest updateDashboardRequest) Updates an existing dashboard's properties, including its name, description, and widget configurations.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
createDashboard
default CompletableFuture<CreateDashboardResponse> createDashboard(CreateDashboardRequest createDashboardRequest) Creates a new dashboard that can contain multiple widgets displaying cost and usage data. You can add custom widgets or use predefined widgets, arranging them in your preferred layout.
- Parameters:
createDashboardRequest
-- Returns:
- A Java Future containing the result of the CreateDashboard operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.
- AccessDeniedException You do not have sufficient permissions to perform this action. Verify your IAM permissions and any resource policies.
- InternalServerException An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.
- ValidationException The input parameters do not satisfy the requirements. Check the error message for specific validation details.
- ServiceQuotaExceededException The request would exceed service quotas. For example, attempting to create more than 20 widgets in a dashboard or exceeding the maximum number of dashboards per account.
- 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.
- BcmDashboardsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createDashboard
default CompletableFuture<CreateDashboardResponse> createDashboard(Consumer<CreateDashboardRequest.Builder> createDashboardRequest) Creates a new dashboard that can contain multiple widgets displaying cost and usage data. You can add custom widgets or use predefined widgets, arranging them in your preferred layout.
This is a convenience which creates an instance of the
CreateDashboardRequest.Builder
avoiding the need to create one manually viaCreateDashboardRequest.builder()
- Parameters:
createDashboardRequest
- AConsumer
that will call methods onCreateDashboardRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateDashboard operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.
- AccessDeniedException You do not have sufficient permissions to perform this action. Verify your IAM permissions and any resource policies.
- InternalServerException An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.
- ValidationException The input parameters do not satisfy the requirements. Check the error message for specific validation details.
- ServiceQuotaExceededException The request would exceed service quotas. For example, attempting to create more than 20 widgets in a dashboard or exceeding the maximum number of dashboards per account.
- 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.
- BcmDashboardsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteDashboard
default CompletableFuture<DeleteDashboardResponse> deleteDashboard(DeleteDashboardRequest deleteDashboardRequest) Deletes a specified dashboard. This action cannot be undone.
- Parameters:
deleteDashboardRequest
-- Returns:
- A Java Future containing the result of the DeleteDashboard operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.
- AccessDeniedException You do not have sufficient permissions to perform this action. Verify your IAM permissions and any resource policies.
- InternalServerException An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.
- ValidationException The input parameters do not satisfy the requirements. Check the error message for specific validation details.
- 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.
- BcmDashboardsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteDashboard
default CompletableFuture<DeleteDashboardResponse> deleteDashboard(Consumer<DeleteDashboardRequest.Builder> deleteDashboardRequest) Deletes a specified dashboard. This action cannot be undone.
This is a convenience which creates an instance of the
DeleteDashboardRequest.Builder
avoiding the need to create one manually viaDeleteDashboardRequest.builder()
- Parameters:
deleteDashboardRequest
- AConsumer
that will call methods onDeleteDashboardRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteDashboard operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.
- AccessDeniedException You do not have sufficient permissions to perform this action. Verify your IAM permissions and any resource policies.
- InternalServerException An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.
- ValidationException The input parameters do not satisfy the requirements. Check the error message for specific validation details.
- 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.
- BcmDashboardsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getDashboard
default CompletableFuture<GetDashboardResponse> getDashboard(GetDashboardRequest getDashboardRequest) Retrieves the configuration and metadata of a specified dashboard, including its widgets and layout settings.
- Parameters:
getDashboardRequest
-- Returns:
- A Java Future containing the result of the GetDashboard operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.
- AccessDeniedException You do not have sufficient permissions to perform this action. Verify your IAM permissions and any resource policies.
- InternalServerException An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.
- ValidationException The input parameters do not satisfy the requirements. Check the error message for specific validation details.
- ResourceNotFoundException The specified resource (dashboard, policy, or widget) was not found. Verify the ARN and try again.
- 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.
- BcmDashboardsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getDashboard
default CompletableFuture<GetDashboardResponse> getDashboard(Consumer<GetDashboardRequest.Builder> getDashboardRequest) Retrieves the configuration and metadata of a specified dashboard, including its widgets and layout settings.
This is a convenience which creates an instance of the
GetDashboardRequest.Builder
avoiding the need to create one manually viaGetDashboardRequest.builder()
- Parameters:
getDashboardRequest
- AConsumer
that will call methods onGetDashboardRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetDashboard operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.
- AccessDeniedException You do not have sufficient permissions to perform this action. Verify your IAM permissions and any resource policies.
- InternalServerException An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.
- ValidationException The input parameters do not satisfy the requirements. Check the error message for specific validation details.
- ResourceNotFoundException The specified resource (dashboard, policy, or widget) was not found. Verify the ARN and try again.
- 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.
- BcmDashboardsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getResourcePolicy
default CompletableFuture<GetResourcePolicyResponse> getResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) Retrieves the resource-based policy attached to a dashboard, showing sharing configurations and permissions.
- Parameters:
getResourcePolicyRequest
-- Returns:
- A Java Future containing the result of the GetResourcePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.
- AccessDeniedException You do not have sufficient permissions to perform this action. Verify your IAM permissions and any resource policies.
- InternalServerException An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.
- ValidationException The input parameters do not satisfy the requirements. Check the error message for specific validation details.
- ResourceNotFoundException The specified resource (dashboard, policy, or widget) was not found. Verify the ARN and try again.
- 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.
- BcmDashboardsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getResourcePolicy
default CompletableFuture<GetResourcePolicyResponse> getResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) Retrieves the resource-based policy attached to a dashboard, showing sharing configurations and permissions.
This is a convenience which creates an instance of the
GetResourcePolicyRequest.Builder
avoiding the need to create one manually viaGetResourcePolicyRequest.builder()
- Parameters:
getResourcePolicyRequest
- AConsumer
that will call methods onGetResourcePolicyRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetResourcePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.
- AccessDeniedException You do not have sufficient permissions to perform this action. Verify your IAM permissions and any resource policies.
- InternalServerException An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.
- ValidationException The input parameters do not satisfy the requirements. Check the error message for specific validation details.
- ResourceNotFoundException The specified resource (dashboard, policy, or widget) was not found. Verify the ARN and try again.
- 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.
- BcmDashboardsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listDashboards
default CompletableFuture<ListDashboardsResponse> listDashboards(ListDashboardsRequest listDashboardsRequest) Returns a list of all dashboards in your account.
- Parameters:
listDashboardsRequest
-- Returns:
- A Java Future containing the result of the ListDashboards operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.
- AccessDeniedException You do not have sufficient permissions to perform this action. Verify your IAM permissions and any resource policies.
- InternalServerException An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.
- ValidationException The input parameters do not satisfy the requirements. Check the error message for specific validation details.
- 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.
- BcmDashboardsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listDashboards
default CompletableFuture<ListDashboardsResponse> listDashboards(Consumer<ListDashboardsRequest.Builder> listDashboardsRequest) Returns a list of all dashboards in your account.
This is a convenience which creates an instance of the
ListDashboardsRequest.Builder
avoiding the need to create one manually viaListDashboardsRequest.builder()
- Parameters:
listDashboardsRequest
- AConsumer
that will call methods onListDashboardsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListDashboards operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.
- AccessDeniedException You do not have sufficient permissions to perform this action. Verify your IAM permissions and any resource policies.
- InternalServerException An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.
- ValidationException The input parameters do not satisfy the requirements. Check the error message for specific validation details.
- 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.
- BcmDashboardsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listDashboardsPaginator
default ListDashboardsPublisher listDashboardsPaginator(ListDashboardsRequest listDashboardsRequest) This is a variant of
listDashboards(software.amazon.awssdk.services.bcmdashboards.model.ListDashboardsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.bcmdashboards.paginators.ListDashboardsPublisher publisher = client.listDashboardsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.bcmdashboards.paginators.ListDashboardsPublisher publisher = client.listDashboardsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bcmdashboards.model.ListDashboardsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bcmdashboards.model.ListDashboardsResponse response) { //... }; });
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
listDashboards(software.amazon.awssdk.services.bcmdashboards.model.ListDashboardsRequest)
operation.- Parameters:
listDashboardsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.
- AccessDeniedException You do not have sufficient permissions to perform this action. Verify your IAM permissions and any resource policies.
- InternalServerException An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.
- ValidationException The input parameters do not satisfy the requirements. Check the error message for specific validation details.
- 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.
- BcmDashboardsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listDashboardsPaginator
default ListDashboardsPublisher listDashboardsPaginator(Consumer<ListDashboardsRequest.Builder> listDashboardsRequest) This is a variant of
listDashboards(software.amazon.awssdk.services.bcmdashboards.model.ListDashboardsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.bcmdashboards.paginators.ListDashboardsPublisher publisher = client.listDashboardsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.bcmdashboards.paginators.ListDashboardsPublisher publisher = client.listDashboardsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bcmdashboards.model.ListDashboardsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bcmdashboards.model.ListDashboardsResponse response) { //... }; });
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
listDashboards(software.amazon.awssdk.services.bcmdashboards.model.ListDashboardsRequest)
operation.
This is a convenience which creates an instance of the
ListDashboardsRequest.Builder
avoiding the need to create one manually viaListDashboardsRequest.builder()
- Parameters:
listDashboardsRequest
- AConsumer
that will call methods onListDashboardsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.
- AccessDeniedException You do not have sufficient permissions to perform this action. Verify your IAM permissions and any resource policies.
- InternalServerException An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.
- ValidationException The input parameters do not satisfy the requirements. Check the error message for specific validation details.
- 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.
- BcmDashboardsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Returns a list of all tags associated with a specified dashboard resource.
- Parameters:
listTagsForResourceRequest
-- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.
- InternalServerException An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.
- ValidationException The input parameters do not satisfy the requirements. Check the error message for specific validation details.
- ResourceNotFoundException The specified resource (dashboard, policy, or widget) was not found. Verify the ARN and try again.
- 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.
- BcmDashboardsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Returns a list of all tags associated with a specified dashboard resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builder
avoiding the need to create one manually viaListTagsForResourceRequest.builder()
- Parameters:
listTagsForResourceRequest
- AConsumer
that will call methods onListTagsForResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.
- InternalServerException An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.
- ValidationException The input parameters do not satisfy the requirements. Check the error message for specific validation details.
- ResourceNotFoundException The specified resource (dashboard, policy, or widget) was not found. Verify the ARN and try again.
- 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.
- BcmDashboardsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
Adds or updates tags for a specified dashboard resource.
- Parameters:
tagResourceRequest
-- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.
- InternalServerException An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.
- ValidationException The input parameters do not satisfy the requirements. Check the error message for specific validation details.
- ResourceNotFoundException The specified resource (dashboard, policy, or widget) was not found. Verify the ARN and try again.
- 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.
- BcmDashboardsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds or updates tags for a specified dashboard resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builder
avoiding the need to create one manually viaTagResourceRequest.builder()
- Parameters:
tagResourceRequest
- AConsumer
that will call methods onTagResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.
- InternalServerException An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.
- ValidationException The input parameters do not satisfy the requirements. Check the error message for specific validation details.
- ResourceNotFoundException The specified resource (dashboard, policy, or widget) was not found. Verify the ARN and try again.
- 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.
- BcmDashboardsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes specified tags from a dashboard resource.
- Parameters:
untagResourceRequest
-- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.
- InternalServerException An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.
- ValidationException The input parameters do not satisfy the requirements. Check the error message for specific validation details.
- ResourceNotFoundException The specified resource (dashboard, policy, or widget) was not found. Verify the ARN and try again.
- 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.
- BcmDashboardsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes specified tags from a dashboard resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builder
avoiding the need to create one manually viaUntagResourceRequest.builder()
- Parameters:
untagResourceRequest
- AConsumer
that will call methods onUntagResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.
- InternalServerException An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.
- ValidationException The input parameters do not satisfy the requirements. Check the error message for specific validation details.
- ResourceNotFoundException The specified resource (dashboard, policy, or widget) was not found. Verify the ARN and try again.
- 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.
- BcmDashboardsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateDashboard
default CompletableFuture<UpdateDashboardResponse> updateDashboard(UpdateDashboardRequest updateDashboardRequest) Updates an existing dashboard's properties, including its name, description, and widget configurations.
- Parameters:
updateDashboardRequest
-- Returns:
- A Java Future containing the result of the UpdateDashboard operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.
- AccessDeniedException You do not have sufficient permissions to perform this action. Verify your IAM permissions and any resource policies.
- InternalServerException An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.
- ValidationException The input parameters do not satisfy the requirements. Check the error message for specific validation details.
- ResourceNotFoundException The specified resource (dashboard, policy, or widget) was not found. Verify the ARN and try again.
- 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.
- BcmDashboardsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateDashboard
default CompletableFuture<UpdateDashboardResponse> updateDashboard(Consumer<UpdateDashboardRequest.Builder> updateDashboardRequest) Updates an existing dashboard's properties, including its name, description, and widget configurations.
This is a convenience which creates an instance of the
UpdateDashboardRequest.Builder
avoiding the need to create one manually viaUpdateDashboardRequest.builder()
- Parameters:
updateDashboardRequest
- AConsumer
that will call methods onUpdateDashboardRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateDashboard operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ThrottlingException The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.
- AccessDeniedException You do not have sufficient permissions to perform this action. Verify your IAM permissions and any resource policies.
- InternalServerException An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.
- ValidationException The input parameters do not satisfy the requirements. Check the error message for specific validation details.
- ResourceNotFoundException The specified resource (dashboard, policy, or widget) was not found. Verify the ARN and try again.
- 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.
- BcmDashboardsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-
create
Create aBcmDashboardsAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aBcmDashboardsAsyncClient
.
-