Interface UxcAsyncClient
- 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.
This is the Amazon Web Services User Experience Customization (UXC) API Reference. Amazon Web Services User Experience Customization (UXC) is a utility that provides programmatic access to enable account administrators to customize the visual appearance of the Amazon Web Services Management Console and manage these settings at the account level.
The visibleServices and visibleRegions settings control only the appearance of services and
Regions in the Amazon Web Services Management Console. They do not restrict access through the CLI, SDKs, or other
APIs.
For more information about UXC features and console procedures, see Getting started with Amazon Web Services User Experience Customization. For information about required permissions, see Identity and access management for Amazon Web Services Management Console.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic UxcAsyncClientBuilderbuilder()Create a builder that can be used to configure and create aUxcAsyncClient.static UxcAsyncClientcreate()Create aUxcAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.getAccountCustomizations(Consumer<GetAccountCustomizationsRequest.Builder> getAccountCustomizationsRequest) Returns the current account customization settings, including account color, visible services, and visible Regions.getAccountCustomizations(GetAccountCustomizationsRequest getAccountCustomizationsRequest) Returns the current account customization settings, including account color, visible services, and visible Regions.default CompletableFuture<ListServicesResponse> listServices(Consumer<ListServicesRequest.Builder> listServicesRequest) Returns a paginated list of Amazon Web Services service identifiers that you can use as values for thevisibleServicessetting in UpdateAccountCustomizations.default CompletableFuture<ListServicesResponse> listServices(ListServicesRequest listServicesRequest) Returns a paginated list of Amazon Web Services service identifiers that you can use as values for thevisibleServicessetting in UpdateAccountCustomizations.default ListServicesPublisherlistServicesPaginator(Consumer<ListServicesRequest.Builder> listServicesRequest) This is a variant oflistServices(software.amazon.awssdk.services.uxc.model.ListServicesRequest)operation.default ListServicesPublisherlistServicesPaginator(ListServicesRequest listServicesRequest) This is a variant oflistServices(software.amazon.awssdk.services.uxc.model.ListServicesRequest)operation.default UxcServiceClientConfigurationThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationupdateAccountCustomizations(Consumer<UpdateAccountCustomizationsRequest.Builder> updateAccountCustomizationsRequest) Updates one or more account customization settings.updateAccountCustomizations(UpdateAccountCustomizationsRequest updateAccountCustomizationsRequest) Updates one or more account customization settings.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
-
getAccountCustomizations
default CompletableFuture<GetAccountCustomizationsResponse> getAccountCustomizations(GetAccountCustomizationsRequest getAccountCustomizationsRequest) Returns the current account customization settings, including account color, visible services, and visible Regions. Settings that you have not configured return their default values: visible Regions and visible services return `null`, and account color returns `none`.
The
visibleServicesandvisibleRegionssettings control only the appearance of services and Regions in the Amazon Web Services Management Console. They do not restrict access through the CLI, SDKs, or other APIs.- Parameters:
getAccountCustomizationsRequest-- Returns:
- A Java Future containing the result of the GetAccountCustomizations 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.- AccessDeniedException You don't have sufficient access to perform this operation. Verify that your
IAM policy includes the required
uxc:permissions for the operation that you are calling. For more information on IAM permissions, see Amazon Web Services managed policies for Amazon Web Services Management Console. - ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- ThrottlingException The request was denied because of request throttling. Reduce the frequency of your requests.
- InternalServerException The service encountered an internal error. Try your request 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.
- UxcException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that your
IAM policy includes the required
- See Also:
-
getAccountCustomizations
default CompletableFuture<GetAccountCustomizationsResponse> getAccountCustomizations(Consumer<GetAccountCustomizationsRequest.Builder> getAccountCustomizationsRequest) Returns the current account customization settings, including account color, visible services, and visible Regions. Settings that you have not configured return their default values: visible Regions and visible services return `null`, and account color returns `none`.
The
visibleServicesandvisibleRegionssettings control only the appearance of services and Regions in the Amazon Web Services Management Console. They do not restrict access through the CLI, SDKs, or other APIs.
This is a convenience which creates an instance of the
GetAccountCustomizationsRequest.Builderavoiding the need to create one manually viaGetAccountCustomizationsRequest.builder()- Parameters:
getAccountCustomizationsRequest- AConsumerthat will call methods onGetAccountCustomizationsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetAccountCustomizations 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.- AccessDeniedException You don't have sufficient access to perform this operation. Verify that your
IAM policy includes the required
uxc:permissions for the operation that you are calling. For more information on IAM permissions, see Amazon Web Services managed policies for Amazon Web Services Management Console. - ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- ThrottlingException The request was denied because of request throttling. Reduce the frequency of your requests.
- InternalServerException The service encountered an internal error. Try your request 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.
- UxcException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that your
IAM policy includes the required
- See Also:
-
listServices
default CompletableFuture<ListServicesResponse> listServices(ListServicesRequest listServicesRequest) Returns a paginated list of Amazon Web Services service identifiers that you can use as values for the
visibleServicessetting in UpdateAccountCustomizations. The available services vary by Amazon Web Services partition. Use pagination to retrieve all results.The
visibleServicessetting controls only the appearance of services in the Amazon Web Services Management Console. It does not restrict access through the CLI, SDKs, or other APIs.- Parameters:
listServicesRequest-- Returns:
- A Java Future containing the result of the ListServices 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.- AccessDeniedException You don't have sufficient access to perform this operation. Verify that your
IAM policy includes the required
uxc:permissions for the operation that you are calling. For more information on IAM permissions, see Amazon Web Services managed policies for Amazon Web Services Management Console. - ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- ThrottlingException The request was denied because of request throttling. Reduce the frequency of your requests.
- InternalServerException The service encountered an internal error. Try your request 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.
- UxcException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that your
IAM policy includes the required
- See Also:
-
listServices
default CompletableFuture<ListServicesResponse> listServices(Consumer<ListServicesRequest.Builder> listServicesRequest) Returns a paginated list of Amazon Web Services service identifiers that you can use as values for the
visibleServicessetting in UpdateAccountCustomizations. The available services vary by Amazon Web Services partition. Use pagination to retrieve all results.The
visibleServicessetting controls only the appearance of services in the Amazon Web Services Management Console. It does not restrict access through the CLI, SDKs, or other APIs.
This is a convenience which creates an instance of the
ListServicesRequest.Builderavoiding the need to create one manually viaListServicesRequest.builder()- Parameters:
listServicesRequest- AConsumerthat will call methods onListServicesRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListServices 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.- AccessDeniedException You don't have sufficient access to perform this operation. Verify that your
IAM policy includes the required
uxc:permissions for the operation that you are calling. For more information on IAM permissions, see Amazon Web Services managed policies for Amazon Web Services Management Console. - ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- ThrottlingException The request was denied because of request throttling. Reduce the frequency of your requests.
- InternalServerException The service encountered an internal error. Try your request 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.
- UxcException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that your
IAM policy includes the required
- See Also:
-
listServicesPaginator
This is a variant of
listServices(software.amazon.awssdk.services.uxc.model.ListServicesRequest)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.uxc.paginators.ListServicesPublisher publisher = client.listServicesPaginator(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.uxc.paginators.ListServicesPublisher publisher = client.listServicesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.uxc.model.ListServicesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.uxc.model.ListServicesResponse 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
listServices(software.amazon.awssdk.services.uxc.model.ListServicesRequest)operation.- Parameters:
listServicesRequest-- 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.- AccessDeniedException You don't have sufficient access to perform this operation. Verify that your
IAM policy includes the required
uxc:permissions for the operation that you are calling. For more information on IAM permissions, see Amazon Web Services managed policies for Amazon Web Services Management Console. - ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- ThrottlingException The request was denied because of request throttling. Reduce the frequency of your requests.
- InternalServerException The service encountered an internal error. Try your request 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.
- UxcException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that your
IAM policy includes the required
- See Also:
-
listServicesPaginator
default ListServicesPublisher listServicesPaginator(Consumer<ListServicesRequest.Builder> listServicesRequest) This is a variant of
listServices(software.amazon.awssdk.services.uxc.model.ListServicesRequest)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.uxc.paginators.ListServicesPublisher publisher = client.listServicesPaginator(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.uxc.paginators.ListServicesPublisher publisher = client.listServicesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.uxc.model.ListServicesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.uxc.model.ListServicesResponse 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
listServices(software.amazon.awssdk.services.uxc.model.ListServicesRequest)operation.
This is a convenience which creates an instance of the
ListServicesRequest.Builderavoiding the need to create one manually viaListServicesRequest.builder()- Parameters:
listServicesRequest- AConsumerthat will call methods onListServicesRequest.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.- AccessDeniedException You don't have sufficient access to perform this operation. Verify that your
IAM policy includes the required
uxc:permissions for the operation that you are calling. For more information on IAM permissions, see Amazon Web Services managed policies for Amazon Web Services Management Console. - ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- ThrottlingException The request was denied because of request throttling. Reduce the frequency of your requests.
- InternalServerException The service encountered an internal error. Try your request 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.
- UxcException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that your
IAM policy includes the required
- See Also:
-
updateAccountCustomizations
default CompletableFuture<UpdateAccountCustomizationsResponse> updateAccountCustomizations(UpdateAccountCustomizationsRequest updateAccountCustomizationsRequest) Updates one or more account customization settings. You can update account color, visible services, and visible Regions in a single request. Only the settings that you include in the request body are modified. Omitted settings remain unchanged. To reset a setting to its default behavior, set the value to
nullfor visible Regions and visible services, ornonefor account color. This operation is idempotent.The
visibleServicesandvisibleRegionssettings control only the appearance of services and Regions in the Amazon Web Services Management Console. They do not restrict access through the CLI, SDKs, or other APIs.- Parameters:
updateAccountCustomizationsRequest-- Returns:
- A Java Future containing the result of the UpdateAccountCustomizations 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.- AccessDeniedException You don't have sufficient access to perform this operation. Verify that your
IAM policy includes the required
uxc:permissions for the operation that you are calling. For more information on IAM permissions, see Amazon Web Services managed policies for Amazon Web Services Management Console. - ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- ThrottlingException The request was denied because of request throttling. Reduce the frequency of your requests.
- InternalServerException The service encountered an internal error. Try your request 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.
- UxcException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that your
IAM policy includes the required
- See Also:
-
updateAccountCustomizations
default CompletableFuture<UpdateAccountCustomizationsResponse> updateAccountCustomizations(Consumer<UpdateAccountCustomizationsRequest.Builder> updateAccountCustomizationsRequest) Updates one or more account customization settings. You can update account color, visible services, and visible Regions in a single request. Only the settings that you include in the request body are modified. Omitted settings remain unchanged. To reset a setting to its default behavior, set the value to
nullfor visible Regions and visible services, ornonefor account color. This operation is idempotent.The
visibleServicesandvisibleRegionssettings control only the appearance of services and Regions in the Amazon Web Services Management Console. They do not restrict access through the CLI, SDKs, or other APIs.
This is a convenience which creates an instance of the
UpdateAccountCustomizationsRequest.Builderavoiding the need to create one manually viaUpdateAccountCustomizationsRequest.builder()- Parameters:
updateAccountCustomizationsRequest- AConsumerthat will call methods onUpdateAccountCustomizationsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateAccountCustomizations 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.- AccessDeniedException You don't have sufficient access to perform this operation. Verify that your
IAM policy includes the required
uxc:permissions for the operation that you are calling. For more information on IAM permissions, see Amazon Web Services managed policies for Amazon Web Services Management Console. - ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- ThrottlingException The request was denied because of request throttling. Reduce the frequency of your requests.
- InternalServerException The service encountered an internal error. Try your request 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.
- UxcException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- AccessDeniedException You don't have sufficient access to perform this operation. Verify that your
IAM policy includes the required
- 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 aUxcAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aUxcAsyncClient.
-