Interface UxcClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
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 UxcClientBuilderbuilder()Create a builder that can be used to configure and create aUxcClient.static UxcClientcreate()Create aUxcClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default GetAccountCustomizationsResponsegetAccountCustomizations(Consumer<GetAccountCustomizationsRequest.Builder> getAccountCustomizationsRequest) Returns the current account customization settings, including account color, visible services, and visible Regions.default GetAccountCustomizationsResponsegetAccountCustomizations(GetAccountCustomizationsRequest getAccountCustomizationsRequest) Returns the current account customization settings, including account color, visible services, and visible Regions.default ListServicesResponselistServices(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 ListServicesResponselistServices(ListServicesRequest listServicesRequest) Returns a paginated list of Amazon Web Services service identifiers that you can use as values for thevisibleServicessetting in UpdateAccountCustomizations.default ListServicesIterablelistServicesPaginator(Consumer<ListServicesRequest.Builder> listServicesRequest) This is a variant oflistServices(software.amazon.awssdk.services.uxc.model.ListServicesRequest)operation.default ListServicesIterablelistServicesPaginator(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., ClientOverrideConfigurationstatic ServiceMetadataupdateAccountCustomizations(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 GetAccountCustomizationsResponse getAccountCustomizations(GetAccountCustomizationsRequest getAccountCustomizationsRequest) throws AccessDeniedException, ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, UxcException 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:
- Result of the GetAccountCustomizations operation returned by the service.
- See Also:
-
getAccountCustomizations
default GetAccountCustomizationsResponse getAccountCustomizations(Consumer<GetAccountCustomizationsRequest.Builder> getAccountCustomizationsRequest) throws AccessDeniedException, ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, UxcException 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:
- Result of the GetAccountCustomizations operation returned by the service.
- See Also:
-
listServices
default ListServicesResponse listServices(ListServicesRequest listServicesRequest) throws AccessDeniedException, ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, UxcException 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:
- Result of the ListServices operation returned by the service.
- See Also:
-
listServices
default ListServicesResponse listServices(Consumer<ListServicesRequest.Builder> listServicesRequest) throws AccessDeniedException, ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, UxcException 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:
- Result of the ListServices operation returned by the service.
- See Also:
-
listServicesPaginator
default ListServicesIterable listServicesPaginator(ListServicesRequest listServicesRequest) throws AccessDeniedException, ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, UxcException This is a variant of
listServices(software.amazon.awssdk.services.uxc.model.ListServicesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.uxc.paginators.ListServicesIterable responses = client.listServicesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.uxc.paginators.ListServicesIterable responses = client.listServicesPaginator(request); for (software.amazon.awssdk.services.uxc.model.ListServicesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.uxc.paginators.ListServicesIterable responses = client.listServicesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listServices(software.amazon.awssdk.services.uxc.model.ListServicesRequest)operation.- Parameters:
listServicesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listServicesPaginator
default ListServicesIterable listServicesPaginator(Consumer<ListServicesRequest.Builder> listServicesRequest) throws AccessDeniedException, ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, UxcException This is a variant of
listServices(software.amazon.awssdk.services.uxc.model.ListServicesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.uxc.paginators.ListServicesIterable responses = client.listServicesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.uxc.paginators.ListServicesIterable responses = client.listServicesPaginator(request); for (software.amazon.awssdk.services.uxc.model.ListServicesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.uxc.paginators.ListServicesIterable responses = client.listServicesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
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 iterable that can be used to iterate through all the response pages.
- See Also:
-
updateAccountCustomizations
default UpdateAccountCustomizationsResponse updateAccountCustomizations(UpdateAccountCustomizationsRequest updateAccountCustomizationsRequest) throws AccessDeniedException, ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, UxcException 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:
- Result of the UpdateAccountCustomizations operation returned by the service.
- See Also:
-
updateAccountCustomizations
default UpdateAccountCustomizationsResponse updateAccountCustomizations(Consumer<UpdateAccountCustomizationsRequest.Builder> updateAccountCustomizationsRequest) throws AccessDeniedException, ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, UxcException 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:
- Result of the UpdateAccountCustomizations operation returned by the service.
- See Also:
-
create
Create aUxcClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aUxcClient. -
serviceMetadata
-
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
-