getConfiguration
inline suspend fun AppConfigClient.getConfiguration(crossinline block: GetConfigurationRequest.Builder.() -> Unit): GetConfigurationResponse
Deprecated
No longer recommended for use. See AWS API documentation for more details.
(Deprecated) Retrieves the latest deployed configuration.
Note the following important information.
This API action is deprecated. Calls to receive configuration data should use the StartConfigurationSession and GetLatestConfiguration APIs instead.
GetConfiguration
is a priced call. For more information, see Pricing.
Samples
fun main() {
//sampleStart
// The following get configuration example returns the configuration details of the example
// application. On subsequent calls to get configuration, use the client configuration version parameter to only
// update the configuration of your application if the version has changed. Only updating the configuration
// when the version has changed avoids excess charges incurred by calling get configuration.
val resp = appConfigClient.getConfiguration {
application = "example-application"
environment = "Example-Environment"
configuration = "Example-Configuration-Profile"
clientId = "example-id"
}
//sampleEnd
}