@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface AppConfigDataAsyncClient extends SdkClient
builder() method.
Use the AppConfigData API, a capability of AWS AppConfig, to retrieve deployed configuration.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider. |
static String |
SERVICE_NAME |
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.static AppConfigDataAsyncClient create()
AppConfigDataAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static AppConfigDataAsyncClientBuilder builder()
AppConfigDataAsyncClient.default CompletableFuture<GetLatestConfigurationResponse> getLatestConfiguration(GetLatestConfigurationRequest getLatestConfigurationRequest)
Retrieves the latest deployed configuration. This API may return empty Configuration data if the client already has the latest version. See StartConfigurationSession to obtain an InitialConfigurationToken to call this API.
Each call to GetLatestConfiguration returns a new ConfigurationToken (NextPollConfigurationToken in the response). This new token MUST be provided to the next call to GetLatestConfiguration when polling for configuration updates.
To avoid excess charges, we recommend that you include the ClientConfigurationVersion value with
every call to GetConfiguration. This value must be saved on your client. Subsequent calls to
GetConfiguration must pass this value by using the ClientConfigurationVersion
parameter.
getLatestConfigurationRequest - Request parameters for the GetLatestConfiguration APIdefault CompletableFuture<GetLatestConfigurationResponse> getLatestConfiguration(Consumer<GetLatestConfigurationRequest.Builder> getLatestConfigurationRequest)
Retrieves the latest deployed configuration. This API may return empty Configuration data if the client already has the latest version. See StartConfigurationSession to obtain an InitialConfigurationToken to call this API.
Each call to GetLatestConfiguration returns a new ConfigurationToken (NextPollConfigurationToken in the response). This new token MUST be provided to the next call to GetLatestConfiguration when polling for configuration updates.
To avoid excess charges, we recommend that you include the ClientConfigurationVersion value with
every call to GetConfiguration. This value must be saved on your client. Subsequent calls to
GetConfiguration must pass this value by using the ClientConfigurationVersion
parameter.
This is a convenience which creates an instance of the GetLatestConfigurationRequest.Builder avoiding the
need to create one manually via GetLatestConfigurationRequest.builder()
getLatestConfigurationRequest - A Consumer that will call methods on GetLatestConfigurationRequest.Builder to create a
request. Request parameters for the GetLatestConfiguration APIdefault CompletableFuture<StartConfigurationSessionResponse> startConfigurationSession(StartConfigurationSessionRequest startConfigurationSessionRequest)
Starts a configuration session used to retrieve a deployed configuration. See the GetLatestConfiguration API for more details.
startConfigurationSessionRequest - Request parameters for the StartConfigurationSession API.default CompletableFuture<StartConfigurationSessionResponse> startConfigurationSession(Consumer<StartConfigurationSessionRequest.Builder> startConfigurationSessionRequest)
Starts a configuration session used to retrieve a deployed configuration. See the GetLatestConfiguration API for more details.
This is a convenience which creates an instance of the StartConfigurationSessionRequest.Builder avoiding
the need to create one manually via StartConfigurationSessionRequest.builder()
startConfigurationSessionRequest - A Consumer that will call methods on StartConfigurationSessionRequest.Builder to create a
request. Request parameters for the StartConfigurationSession API.Copyright © 2021. All rights reserved.