create_application_version
¶
create_application_version(
application_id: __string,
semantic_version: __string,
*,
config_overrides: Optional[ServerlessApplicationRepositoryClientConfig] = None,
source_code_archive_url: Optional[__string] = None,
source_code_url: Optional[__string] = None,
template_body: Optional[__string] = None,
template_url: Optional[__string] = None,
) -> CreateApplicationVersionResponse
Creates an application version.
Parameters:
-
application_id(__string) –The Amazon Resource Name (ARN) of the application.
-
semantic_version(__string) –The semantic version of the new version.
-
source_code_archive_url(Optional[__string], default:None) –A link to the S3 object that contains the ZIP archive of the source code for this version of your application.
Maximum size 50 MB
-
source_code_url(Optional[__string], default:None) –A link to a public repository for the source code of your application, for example the URL of a specific GitHub commit.
-
template_body(Optional[__string], default:None) –The raw packaged AWS SAM template of your application.
-
template_url(Optional[__string], default:None) –A link to the packaged AWS SAM template of your application.
Raises:
-
BadRequestException–One of the parameters in the request is invalid.
-
ConflictException–The resource already exists.
-
ForbiddenException–The client is not authenticated.
-
InternalServerErrorException–The AWS Serverless Application Repository service encountered an internal error.
-
TooManyRequestsException–The client is sending more than the allowed number of requests per unit of time.
-
UnknownServiceError–The service returned an error code this client does not model.