Smaws_Client_ElasticBeanstalk.CreateApplicationVersionCreates an application version for the specified application. You can create an application version from a source bundle in Amazon S3, a commit in AWS CodeCommit, or the output of an AWS CodeBuild build as follows:
Specify a commit in an AWS CodeCommit repository with SourceBuildInformation.
Specify a build in an AWS CodeBuild with SourceBuildInformation and BuildConfiguration.
Specify a source bundle in 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.
val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `CodeBuildNotInServiceRegionException of
Types.code_build_not_in_service_region_exception
| `InsufficientPrivilegesException of Types.insufficient_privileges_exception
| `S3LocationNotInServiceRegionException of
Types.s3_location_not_in_service_region_exception
| `TooManyApplicationsException of Types.too_many_applications_exception
| `TooManyApplicationVersionsException of
Types.too_many_application_versions_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.create_application_version_message ->
(Types.application_version_description_message,
[> Smaws_Lib.Protocols.AwsQuery.error
| `CodeBuildNotInServiceRegionException of
Types.code_build_not_in_service_region_exception
| `InsufficientPrivilegesException of
Types.insufficient_privileges_exception
| `S3LocationNotInServiceRegionException of
Types.s3_location_not_in_service_region_exception
| `TooManyApplicationsException of Types.too_many_applications_exception
| `TooManyApplicationVersionsException of
Types.too_many_application_versions_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.create_application_version_message ->
(Types.application_version_description_message Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `CodeBuildNotInServiceRegionException of
Types.code_build_not_in_service_region_exception
| `InsufficientPrivilegesException of
Types.insufficient_privileges_exception
| `S3LocationNotInServiceRegionException of
Types.s3_location_not_in_service_region_exception
| `TooManyApplicationsException of Types.too_many_applications_exception
| `TooManyApplicationVersionsException of
Types.too_many_application_versions_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result