Interface PartnerCentralAnalyticsAsyncClient
- 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.
Partner Central Analytics Service
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue 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 aPartnerCentralAnalyticsAsyncClient.create()Create aPartnerCentralAnalyticsAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.createDataSubscription(Consumer<CreateDataSubscriptionRequest.Builder> createDataSubscriptionRequest) Creates a data subscription that delivers a partner analytics dataset to an S3 bucket in the caller's AWS account on a schedule.createDataSubscription(CreateDataSubscriptionRequest createDataSubscriptionRequest) Creates a data subscription that delivers a partner analytics dataset to an S3 bucket in the caller's AWS account on a schedule.deleteDataSubscription(Consumer<DeleteDataSubscriptionRequest.Builder> deleteDataSubscriptionRequest) Deletes a data subscription owned by the calling account.deleteDataSubscription(DeleteDataSubscriptionRequest deleteDataSubscriptionRequest) Deletes a data subscription owned by the calling account.getDataSubscription(Consumer<GetDataSubscriptionRequest.Builder> getDataSubscriptionRequest) Returns the full details of a data subscription owned by the calling account, including its delivery status and how far delivery has progressed.getDataSubscription(GetDataSubscriptionRequest getDataSubscriptionRequest) Returns the full details of a data subscription owned by the calling account, including its delivery status and how far delivery has progressed.listDataSubscriptions(Consumer<ListDataSubscriptionsRequest.Builder> listDataSubscriptionsRequest) Lists the data subscriptions owned by the calling account in the given catalog.listDataSubscriptions(ListDataSubscriptionsRequest listDataSubscriptionsRequest) Lists the data subscriptions owned by the calling account in the given catalog.default ListDataSubscriptionsPublisherlistDataSubscriptionsPaginator(Consumer<ListDataSubscriptionsRequest.Builder> listDataSubscriptionsRequest) This is a variant oflistDataSubscriptions(software.amazon.awssdk.services.partnercentralanalytics.model.ListDataSubscriptionsRequest)operation.default ListDataSubscriptionsPublisherlistDataSubscriptionsPaginator(ListDataSubscriptionsRequest listDataSubscriptionsRequest) This is a variant oflistDataSubscriptions(software.amazon.awssdk.services.partnercentralanalytics.model.ListDataSubscriptionsRequest)operation.listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags on a data subscription owned by the calling account.listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags on a data subscription owned by the calling account.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationdefault CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds or overwrites tags on a data subscription owned by the calling account.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest) Adds or overwrites tags on a data subscription owned by the calling account.default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes the named tag keys from a data subscription owned by the calling account.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes the named tag keys from a data subscription owned by the calling account.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods 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
-
createDataSubscription
default CompletableFuture<CreateDataSubscriptionResponse> createDataSubscription(CreateDataSubscriptionRequest createDataSubscriptionRequest) Creates a data subscription that delivers a partner analytics dataset to an S3 bucket in the caller's AWS account on a schedule. The delivery destination is validated before the subscription is created: the service performs a test write to the bucket as its delivery principal using the supplied KMS key. Subscriptions are immutable; delete and recreate to change one.
- Parameters:
createDataSubscriptionRequest-- Returns:
- A Java Future containing the result of the CreateDataSubscription 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.- ServiceQuotaExceededException Creating the data subscription would exceed the per-dataset subscription quota for the caller.
- TooManyRequestsException The request was denied due to request throttling. Reduce your request rate and retry with exponential backoff.
- InternalServerException Thrown when an unexpected error occurs while processing the request
- ConflictException An active data subscription with the same dataset, delivery method, and destination already exists for the caller.
- AccessDeniedException This exception is thrown when the client is not authorized to perform an action
- BadRequestException This exception is thrown when the request is not formatted correctly.
- IdempotentParameterMismatchException The supplied clientToken was used on a prior successful request with different parameters.
- S3AccessException The destination S3 bucket is not accessible to the delivery principal. Check the bucket policy and ownership.
- KmsKeyAccessException The KMS key is not usable by the delivery principal for the destination bucket. Check the key policy.
- 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.
- PartnerCentralAnalyticsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createDataSubscription
default CompletableFuture<CreateDataSubscriptionResponse> createDataSubscription(Consumer<CreateDataSubscriptionRequest.Builder> createDataSubscriptionRequest) Creates a data subscription that delivers a partner analytics dataset to an S3 bucket in the caller's AWS account on a schedule. The delivery destination is validated before the subscription is created: the service performs a test write to the bucket as its delivery principal using the supplied KMS key. Subscriptions are immutable; delete and recreate to change one.
This is a convenience which creates an instance of the
CreateDataSubscriptionRequest.Builderavoiding the need to create one manually viaCreateDataSubscriptionRequest.builder()- Parameters:
createDataSubscriptionRequest- AConsumerthat will call methods onCreateDataSubscriptionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateDataSubscription 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.- ServiceQuotaExceededException Creating the data subscription would exceed the per-dataset subscription quota for the caller.
- TooManyRequestsException The request was denied due to request throttling. Reduce your request rate and retry with exponential backoff.
- InternalServerException Thrown when an unexpected error occurs while processing the request
- ConflictException An active data subscription with the same dataset, delivery method, and destination already exists for the caller.
- AccessDeniedException This exception is thrown when the client is not authorized to perform an action
- BadRequestException This exception is thrown when the request is not formatted correctly.
- IdempotentParameterMismatchException The supplied clientToken was used on a prior successful request with different parameters.
- S3AccessException The destination S3 bucket is not accessible to the delivery principal. Check the bucket policy and ownership.
- KmsKeyAccessException The KMS key is not usable by the delivery principal for the destination bucket. Check the key policy.
- 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.
- PartnerCentralAnalyticsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteDataSubscription
default CompletableFuture<DeleteDataSubscriptionResponse> deleteDataSubscription(DeleteDataSubscriptionRequest deleteDataSubscriptionRequest) Deletes a data subscription owned by the calling account. Delivery stops immediately; data already delivered stays in the caller's bucket. Deleting an already-deleted subscription succeeds.
- Parameters:
deleteDataSubscriptionRequest-- Returns:
- A Java Future containing the result of the DeleteDataSubscription 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.- TooManyRequestsException The request was denied due to request throttling. Reduce your request rate and retry with exponential backoff.
- InternalServerException Thrown when an unexpected error occurs while processing the request
- AccessDeniedException This exception is thrown when the client is not authorized to perform an action
- BadRequestException This exception is thrown when the request is not formatted correctly.
- ResourceNotFoundException Thrown when the requested resource does not 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.
- PartnerCentralAnalyticsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteDataSubscription
default CompletableFuture<DeleteDataSubscriptionResponse> deleteDataSubscription(Consumer<DeleteDataSubscriptionRequest.Builder> deleteDataSubscriptionRequest) Deletes a data subscription owned by the calling account. Delivery stops immediately; data already delivered stays in the caller's bucket. Deleting an already-deleted subscription succeeds.
This is a convenience which creates an instance of the
DeleteDataSubscriptionRequest.Builderavoiding the need to create one manually viaDeleteDataSubscriptionRequest.builder()- Parameters:
deleteDataSubscriptionRequest- AConsumerthat will call methods onDeleteDataSubscriptionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteDataSubscription 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.- TooManyRequestsException The request was denied due to request throttling. Reduce your request rate and retry with exponential backoff.
- InternalServerException Thrown when an unexpected error occurs while processing the request
- AccessDeniedException This exception is thrown when the client is not authorized to perform an action
- BadRequestException This exception is thrown when the request is not formatted correctly.
- ResourceNotFoundException Thrown when the requested resource does not 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.
- PartnerCentralAnalyticsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getDataSubscription
default CompletableFuture<GetDataSubscriptionResponse> getDataSubscription(GetDataSubscriptionRequest getDataSubscriptionRequest) Returns the full details of a data subscription owned by the calling account, including its delivery status and how far delivery has progressed.
- Parameters:
getDataSubscriptionRequest-- Returns:
- A Java Future containing the result of the GetDataSubscription 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.- TooManyRequestsException The request was denied due to request throttling. Reduce your request rate and retry with exponential backoff.
- InternalServerException Thrown when an unexpected error occurs while processing the request
- AccessDeniedException This exception is thrown when the client is not authorized to perform an action
- BadRequestException This exception is thrown when the request is not formatted correctly.
- ResourceNotFoundException Thrown when the requested resource does not 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.
- PartnerCentralAnalyticsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getDataSubscription
default CompletableFuture<GetDataSubscriptionResponse> getDataSubscription(Consumer<GetDataSubscriptionRequest.Builder> getDataSubscriptionRequest) Returns the full details of a data subscription owned by the calling account, including its delivery status and how far delivery has progressed.
This is a convenience which creates an instance of the
GetDataSubscriptionRequest.Builderavoiding the need to create one manually viaGetDataSubscriptionRequest.builder()- Parameters:
getDataSubscriptionRequest- AConsumerthat will call methods onGetDataSubscriptionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetDataSubscription 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.- TooManyRequestsException The request was denied due to request throttling. Reduce your request rate and retry with exponential backoff.
- InternalServerException Thrown when an unexpected error occurs while processing the request
- AccessDeniedException This exception is thrown when the client is not authorized to perform an action
- BadRequestException This exception is thrown when the request is not formatted correctly.
- ResourceNotFoundException Thrown when the requested resource does not 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.
- PartnerCentralAnalyticsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listDataSubscriptions
default CompletableFuture<ListDataSubscriptionsResponse> listDataSubscriptions(ListDataSubscriptionsRequest listDataSubscriptionsRequest) Lists the data subscriptions owned by the calling account in the given catalog. Deleted subscriptions are not listed; use GetDataSubscription to retrieve a deleted subscription by its ARN.
- Parameters:
listDataSubscriptionsRequest-- Returns:
- A Java Future containing the result of the ListDataSubscriptions 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.- TooManyRequestsException The request was denied due to request throttling. Reduce your request rate and retry with exponential backoff.
- InternalServerException Thrown when an unexpected error occurs while processing the request
- AccessDeniedException This exception is thrown when the client is not authorized to perform an action
- BadRequestException This exception is thrown when the request is not formatted correctly.
- 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.
- PartnerCentralAnalyticsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listDataSubscriptions
default CompletableFuture<ListDataSubscriptionsResponse> listDataSubscriptions(Consumer<ListDataSubscriptionsRequest.Builder> listDataSubscriptionsRequest) Lists the data subscriptions owned by the calling account in the given catalog. Deleted subscriptions are not listed; use GetDataSubscription to retrieve a deleted subscription by its ARN.
This is a convenience which creates an instance of the
ListDataSubscriptionsRequest.Builderavoiding the need to create one manually viaListDataSubscriptionsRequest.builder()- Parameters:
listDataSubscriptionsRequest- AConsumerthat will call methods onListDataSubscriptionsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListDataSubscriptions 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.- TooManyRequestsException The request was denied due to request throttling. Reduce your request rate and retry with exponential backoff.
- InternalServerException Thrown when an unexpected error occurs while processing the request
- AccessDeniedException This exception is thrown when the client is not authorized to perform an action
- BadRequestException This exception is thrown when the request is not formatted correctly.
- 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.
- PartnerCentralAnalyticsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listDataSubscriptionsPaginator
default ListDataSubscriptionsPublisher listDataSubscriptionsPaginator(ListDataSubscriptionsRequest listDataSubscriptionsRequest) This is a variant of
listDataSubscriptions(software.amazon.awssdk.services.partnercentralanalytics.model.ListDataSubscriptionsRequest)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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.partnercentralanalytics.paginators.ListDataSubscriptionsPublisher publisher = client.listDataSubscriptionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.partnercentralanalytics.paginators.ListDataSubscriptionsPublisher publisher = client.listDataSubscriptionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.partnercentralanalytics.model.ListDataSubscriptionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.partnercentralanalytics.model.ListDataSubscriptionsResponse 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
listDataSubscriptions(software.amazon.awssdk.services.partnercentralanalytics.model.ListDataSubscriptionsRequest)operation.- Parameters:
listDataSubscriptionsRequest-- 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.- TooManyRequestsException The request was denied due to request throttling. Reduce your request rate and retry with exponential backoff.
- InternalServerException Thrown when an unexpected error occurs while processing the request
- AccessDeniedException This exception is thrown when the client is not authorized to perform an action
- BadRequestException This exception is thrown when the request is not formatted correctly.
- 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.
- PartnerCentralAnalyticsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listDataSubscriptionsPaginator
default ListDataSubscriptionsPublisher listDataSubscriptionsPaginator(Consumer<ListDataSubscriptionsRequest.Builder> listDataSubscriptionsRequest) This is a variant of
listDataSubscriptions(software.amazon.awssdk.services.partnercentralanalytics.model.ListDataSubscriptionsRequest)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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.partnercentralanalytics.paginators.ListDataSubscriptionsPublisher publisher = client.listDataSubscriptionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.partnercentralanalytics.paginators.ListDataSubscriptionsPublisher publisher = client.listDataSubscriptionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.partnercentralanalytics.model.ListDataSubscriptionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.partnercentralanalytics.model.ListDataSubscriptionsResponse 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
listDataSubscriptions(software.amazon.awssdk.services.partnercentralanalytics.model.ListDataSubscriptionsRequest)operation.
This is a convenience which creates an instance of the
ListDataSubscriptionsRequest.Builderavoiding the need to create one manually viaListDataSubscriptionsRequest.builder()- Parameters:
listDataSubscriptionsRequest- AConsumerthat will call methods onListDataSubscriptionsRequest.Builderto 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.- TooManyRequestsException The request was denied due to request throttling. Reduce your request rate and retry with exponential backoff.
- InternalServerException Thrown when an unexpected error occurs while processing the request
- AccessDeniedException This exception is thrown when the client is not authorized to perform an action
- BadRequestException This exception is thrown when the request is not formatted correctly.
- 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.
- PartnerCentralAnalyticsException 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) Lists the tags on a data subscription owned by the calling account.
- 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.- TooManyRequestsException The request was denied due to request throttling. Reduce your request rate and retry with exponential backoff.
- InternalServerException Thrown when an unexpected error occurs while processing the request
- AccessDeniedException This exception is thrown when the client is not authorized to perform an action
- BadRequestException This exception is thrown when the request is not formatted correctly.
- ResourceNotFoundException Thrown when the requested resource does not 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.
- PartnerCentralAnalyticsException 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) Lists the tags on a data subscription owned by the calling account.
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:
- 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.- TooManyRequestsException The request was denied due to request throttling. Reduce your request rate and retry with exponential backoff.
- InternalServerException Thrown when an unexpected error occurs while processing the request
- AccessDeniedException This exception is thrown when the client is not authorized to perform an action
- BadRequestException This exception is thrown when the request is not formatted correctly.
- ResourceNotFoundException Thrown when the requested resource does not 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.
- PartnerCentralAnalyticsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
Adds or overwrites tags on a data subscription owned by the calling account.
- 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.- TooManyRequestsException The request was denied due to request throttling. Reduce your request rate and retry with exponential backoff.
- InternalServerException Thrown when an unexpected error occurs while processing the request
- AccessDeniedException This exception is thrown when the client is not authorized to perform an action
- BadRequestException This exception is thrown when the request is not formatted correctly.
- ResourceNotFoundException Thrown when the requested resource does not 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.
- PartnerCentralAnalyticsException 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 overwrites tags on a data subscription owned by the calling account.
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:
- 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.- TooManyRequestsException The request was denied due to request throttling. Reduce your request rate and retry with exponential backoff.
- InternalServerException Thrown when an unexpected error occurs while processing the request
- AccessDeniedException This exception is thrown when the client is not authorized to perform an action
- BadRequestException This exception is thrown when the request is not formatted correctly.
- ResourceNotFoundException Thrown when the requested resource does not 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.
- PartnerCentralAnalyticsException 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 the named tag keys from a data subscription owned by the calling account.
- 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.- TooManyRequestsException The request was denied due to request throttling. Reduce your request rate and retry with exponential backoff.
- InternalServerException Thrown when an unexpected error occurs while processing the request
- AccessDeniedException This exception is thrown when the client is not authorized to perform an action
- BadRequestException This exception is thrown when the request is not formatted correctly.
- ResourceNotFoundException Thrown when the requested resource does not 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.
- PartnerCentralAnalyticsException 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 the named tag keys from a data subscription owned by the calling account.
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:
- 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.- TooManyRequestsException The request was denied due to request throttling. Reduce your request rate and retry with exponential backoff.
- InternalServerException Thrown when an unexpected error occurs while processing the request
- AccessDeniedException This exception is thrown when the client is not authorized to perform an action
- BadRequestException This exception is thrown when the request is not formatted correctly.
- ResourceNotFoundException Thrown when the requested resource does not 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.
- PartnerCentralAnalyticsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-
create
Create aPartnerCentralAnalyticsAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aPartnerCentralAnalyticsAsyncClient.
-