update_package_version
¶
update_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,
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/io_t.py
18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 18092 18093 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 18107 18108 18109 18110 18111 18112 18113 18114 18115 18116 18117 18118 18119 18120 18121 18122 18123 18124 18125 18126 18127 18128 18129 18130 18131 18132 18133 18134 18135 18136 18137 18138 18139 18140 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150 18151 18152 18153 18154 18155 18156 18157 18158 | |