update_package_version
async
¶
update_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,
action: Optional[PackageVersionAction] = None,
recipe: Optional[PackageVersionRecipe] = None,
client_token: Optional[ClientToken] = None,
) -> UpdatePackageVersionResponse
Updates the supported fields for a specific package version.
Requires permission to access the UpdatePackageVersion and GetIndexingConfiguration actions.
Parameters:
-
package_name(PackageName) –The name of the associated software package.
-
version_name(VersionName) –The name of the target package version.
-
description(Optional[ResourceDescription], default:None) –The package version description.
-
attributes(Optional[ResourceAttributes], default:None) –Metadata that can be used to define a package version’s configuration. For example, the Amazon S3 file location, configuration options that are being sent to the device or fleet.
Note: Attributes can be updated only when the package version is in a draft state.
The combined size of all the attributes on a package version is limited to 3KB.
-
artifact(Optional[PackageVersionArtifact], default:None) –The various components that make up a software package version.
-
action(Optional[PackageVersionAction], default:None) –The status that the package version should be assigned. For more information, see Package version lifecycle.
-
recipe(Optional[PackageVersionRecipe], default:None) –The inline job document associated with a software package version used for a quick job deployment.
-
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.
-
ResourceNotFoundException–The specified resource does not exist.
-
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
18335 18336 18337 18338 18339 18340 18341 18342 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 18364 18365 18366 18367 18368 18369 18370 18371 18372 18373 18374 18375 18376 18377 18378 18379 18380 18381 18382 18383 18384 18385 18386 18387 18388 18389 18390 18391 18392 18393 18394 18395 18396 18397 18398 18399 18400 18401 18402 18403 18404 18405 18406 18407 18408 18409 18410 18411 18412 18413 18414 18415 18416 18417 18418 18419 18420 18421 18422 18423 18424 18425 18426 18427 18428 18429 18430 18431 | |