createApplicationVersion
Creates an application version for the specified application. You can create an application version from a source bundle in Amazon S3, a commit in CodeCommit, or the output of an CodeBuild build as follows:
Specify a commit in an CodeCommit repository with SourceBuildInformation.
Specify a build in an CodeBuild with SourceBuildInformation and BuildConfiguration.
Specify a source bundle in Amazon S3 with SourceBundle
Omit both SourceBuildInformation and SourceBundle to use the default sample application.
After you create an application version with a specified Amazon S3 bucket and key location, you can't change that Amazon S3 location. If you change the Amazon S3 location, you receive an exception when you attempt to launch an environment from the application version.
Samples
// The following operation creates a new version (v1) of an application named my app
val resp = elasticBeanstalkClient.createApplicationVersion {
applicationName = "my-app"
versionLabel = "v1"
description = "my-app-v1"
sourceBundle = S3Location {
s3Bucket = "my-bucket"
s3Key = "sample.war"
}
autoCreateApplication = true
process = true
}