Interface AppConfigCloudExtensionClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder()
method.
Serves AWS AppConfig configurations and feature flags from a local cache through the AWS Cloud Extensions runtime. By default, send requests to http://localhost:5333/appconfig.
-
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 aAppConfigCloudExtensionClient.create()Create aAppConfigCloudExtensionClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default GetConfigurationResponsegetConfiguration(Consumer<GetConfigurationRequest.Builder> getConfigurationRequest) Returns the latest deployed configuration for an application, environment, and configuration profile, served from the Extension's local cache.default GetConfigurationResponsegetConfiguration(GetConfigurationRequest getConfigurationRequest) Returns the latest deployed configuration for an application, environment, and configuration profile, served from the Extension's local cache.default GetFlagResponsegetFlag(Consumer<GetFlagRequest.Builder> getFlagRequest) Returns one flag of a feature flag configuration profile from the Extension's local cache.default GetFlagResponsegetFlag(GetFlagRequest getFlagRequest) Returns one flag of a feature flag configuration profile from the Extension's local cache.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadataMethods 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
-
getConfiguration
default GetConfigurationResponse getConfiguration(GetConfigurationRequest getConfigurationRequest) throws ValidationException, AccessDeniedException, ServiceUnavailableException, RequestEntityTooLargeException, BadGatewayException, ThrottlingException, UpgradeRequiredException, InternalServerException, LoopDetectedException, AwsServiceException, SdkClientException, AppConfigCloudExtensionException Returns the latest deployed configuration for an application, environment, and configuration profile, served from the Extension's local cache. The Extension keeps the cache current by polling AWS AppConfig in the background, so repeated calls don't call AWS AppConfig.
- Parameters:
getConfigurationRequest- The input of GetConfiguration.- Returns:
- Result of the GetConfiguration operation returned by the service.
- See Also:
-
getConfiguration
default GetConfigurationResponse getConfiguration(Consumer<GetConfigurationRequest.Builder> getConfigurationRequest) throws ValidationException, AccessDeniedException, ServiceUnavailableException, RequestEntityTooLargeException, BadGatewayException, ThrottlingException, UpgradeRequiredException, InternalServerException, LoopDetectedException, AwsServiceException, SdkClientException, AppConfigCloudExtensionException Returns the latest deployed configuration for an application, environment, and configuration profile, served from the Extension's local cache. The Extension keeps the cache current by polling AWS AppConfig in the background, so repeated calls don't call AWS AppConfig.
This is a convenience which creates an instance of the
GetConfigurationRequest.Builderavoiding the need to create one manually viaGetConfigurationRequest.builder()- Parameters:
getConfigurationRequest- AConsumerthat will call methods onGetConfigurationRequest.Builderto create a request. The input of GetConfiguration.- Returns:
- Result of the GetConfiguration operation returned by the service.
- See Also:
-
getFlag
default GetFlagResponse getFlag(GetFlagRequest getFlagRequest) throws ValidationException, AccessDeniedException, ServiceUnavailableException, RequestEntityTooLargeException, BadGatewayException, ThrottlingException, UpgradeRequiredException, InternalServerException, LoopDetectedException, AwsServiceException, SdkClientException, AppConfigCloudExtensionException Returns one flag of a feature flag configuration profile from the Extension's local cache. For a profile with variants, the flag's rules are evaluated locally against the request context.
- Parameters:
getFlagRequest- The input of GetFlag.- Returns:
- Result of the GetFlag operation returned by the service.
- See Also:
-
getFlag
default GetFlagResponse getFlag(Consumer<GetFlagRequest.Builder> getFlagRequest) throws ValidationException, AccessDeniedException, ServiceUnavailableException, RequestEntityTooLargeException, BadGatewayException, ThrottlingException, UpgradeRequiredException, InternalServerException, LoopDetectedException, AwsServiceException, SdkClientException, AppConfigCloudExtensionException Returns one flag of a feature flag configuration profile from the Extension's local cache. For a profile with variants, the flag's rules are evaluated locally against the request context.
This is a convenience which creates an instance of the
GetFlagRequest.Builderavoiding the need to create one manually viaGetFlagRequest.builder()- Parameters:
getFlagRequest- AConsumerthat will call methods onGetFlagRequest.Builderto create a request. The input of GetFlag.- Returns:
- Result of the GetFlag operation returned by the service.
- See Also:
-
create
Create aAppConfigCloudExtensionClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aAppConfigCloudExtensionClient. -
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
-