update_package
async
¶
update_package(
package_name: PackageName,
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
description: Optional[ResourceDescription] = None,
default_version_name: Optional[VersionName] = None,
unset_default_version: Optional[UnsetDefaultVersion] = None,
client_token: Optional[ClientToken] = None,
) -> UpdatePackageResponse
Updates the supported fields for a specific software package.
Requires permission to access the UpdatePackage and GetIndexingConfiguration actions.
Parameters:
-
package_name(PackageName) –The name of the target software package.
-
description(Optional[ResourceDescription], default:None) –The package description.
-
default_version_name(Optional[VersionName], default:None) –The name of the default package version.
Note: You cannot name a
defaultVersionand setunsetDefaultVersionequal totrueat the same time. -
unset_default_version(Optional[UnsetDefaultVersion], default:None) –Indicates whether you want to remove the named default package version from the software package. Set as
trueto remove the default package version.Note: You cannot name a
defaultVersionand setunsetDefaultVersionequal totrueat the same time. -
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
18198 18199 18200 18201 18202 18203 18204 18205 18206 18207 18208 18209 18210 18211 18212 18213 18214 18215 18216 18217 18218 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 18231 18232 18233 18234 18235 18236 18237 18238 18239 18240 18241 18242 18243 18244 18245 18246 18247 18248 18249 18250 18251 18252 18253 18254 18255 18256 18257 18258 18259 18260 18261 18262 18263 18264 18265 18266 18267 18268 18269 18270 18271 18272 18273 18274 18275 18276 18277 | |