create_application_version
async
¶
create_application_version(
application_id: __string,
semantic_version: __string,
*,
config_overrides: Optional[AsyncServerlessApplicationRepositoryClientConfig] = 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.
Source code in docs_src/capo_serverlessapplicationrepository/_services/async_serverless_application_repository.py
324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 | |