create_package_version
async
¶
create_package_version(
package_name: PackageName,
version_name: VersionName,
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
description: Optional[ResourceDescription] = None,
attributes: Optional[ResourceAttributes] = None,
artifact: Optional[PackageVersionArtifact] = None,
recipe: Optional[PackageVersionRecipe] = None,
tags: Optional[TagMap] = None,
client_token: Optional[ClientToken] = None,
) -> CreatePackageVersionResponse
Creates a new version for an existing IoT software package.
Requires permission to access the CreatePackageVersion and GetIndexingConfiguration actions.
Parameters:
-
package_name(PackageName) –The name of the associated software package.
-
version_name(VersionName) –The name of the new package version.
-
description(Optional[ResourceDescription], default:None) –A summary of the package version being created. This can be used to outline the package's contents or purpose.
-
attributes(Optional[ResourceAttributes], default:None) –Metadata that can be used to define a package version’s configuration. For example, the S3 file location, configuration options that are being sent to the device or fleet.
The combined size of all the attributes on a package version is limited to 3KB.
-
artifact(Optional[PackageVersionArtifact], default:None) –The various build components created during the build process such as libraries and configuration files that make up a software package version.
-
recipe(Optional[PackageVersionRecipe], default:None) –The inline job document associated with a software package version used for a quick job deployment.
-
tags(Optional[TagMap], default:None) –Metadata that can be used to manage the package version.
-
client_token(Optional[ClientToken], default:None) –A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
Raises:
-
ConflictException–The request conflicts with the current state of the resource.
-
InternalServerException–Internal error from the service that indicates an unexpected error or that the service is unavailable.
-
ServiceQuotaExceededException–Service quota has been exceeded.
-
ThrottlingException–The rate exceeds the limit.
-
ValidationException–The request is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/async_io_t.py
3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 | |