update_package
¶
update_package(
package_name: PackageName,
*,
config_overrides: Optional[IoTClientConfig] = 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/io_t.py
17928 17929 17930 17931 17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964 17965 17966 17967 17968 17969 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 | |