update_provisioning_template
¶
update_provisioning_template(
template_name: TemplateName,
*,
config_overrides: Optional[IoTClientConfig] = None,
description: Optional[TemplateDescription] = None,
enabled: Optional[Enabled2] = None,
default_version_id: Optional[TemplateVersionId] = None,
provisioning_role_arn: Optional[RoleArn] = None,
pre_provisioning_hook: Optional[ProvisioningHook] = None,
remove_pre_provisioning_hook: Optional[RemoveHook] = None,
) -> UpdateProvisioningTemplateResponse
Updates a provisioning template.
Requires permission to access the UpdateProvisioningTemplate action.
Parameters:
-
template_name(TemplateName) –The name of the provisioning template.
-
description(Optional[TemplateDescription], default:None) –The description of the provisioning template.
-
enabled(Optional[Enabled2], default:None) –True to enable the provisioning template, otherwise false.
-
default_version_id(Optional[TemplateVersionId], default:None) –The ID of the default provisioning template version.
-
provisioning_role_arn(Optional[RoleArn], default:None) –The ARN of the role associated with the provisioning template. This IoT role grants permission to provision a device.
-
pre_provisioning_hook(Optional[ProvisioningHook], default:None) –Updates the pre-provisioning hook template. Only supports template of type
FLEET_PROVISIONING. For more information about provisioning template types, see type. -
remove_pre_provisioning_hook(Optional[RemoveHook], default:None) –Removes pre-provisioning hook template.
Raises:
-
ConflictingResourceUpdateException–A conflicting resource update exception. This exception is thrown when two pending updates cause a conflict.
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
ResourceNotFoundException–The specified resource does not exist.
-
UnauthorizedException–You are not authorized to perform this operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/io_t.py
18160 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172 18173 18174 18175 18176 18177 18178 18179 18180 18181 18182 18183 18184 18185 18186 18187 18188 18189 18190 18191 18192 18193 18194 18195 18196 18197 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 | |