createHostedConfigurationVersion

Creates a new configuration in the AppConfig hosted configuration store. If you're creating a feature flag, we recommend you familiarize yourself with the JSON schema for feature flag data. For more information, see Type reference for AWS.AppConfig.FeatureFlags in the AppConfig User Guide.

Samples


fun main() { 
   //sampleStart 
   // The following create hosted configuration version example creates a new configuration in the AWS
// AppConfig configuration store.
val resp = appConfigClient.createHostedConfigurationVersion {
    applicationId = "339ohji"
    configurationProfileId = "ur8hx2f"
    content = "eyAiTmFtZSI6ICJFeGFtcGxlQXBwbGljYXRpb24iLCAiSWQiOiBFeGFtcGxlSUQsICJSYW5rIjogNyB9".encodeAsByteArray()
    contentType = "text"
    latestVersionNumber = 1
} 
   //sampleEnd
}