create_package_version
¶
create_package_version(
package_name: PackageName,
version_name: VersionName,
*,
config_overrides: Optional[IoTClientConfig] = 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/io_t.py
3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 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 | |