update_provisioning_template
async
¶
update_provisioning_template(
template_name: TemplateName,
*,
config_overrides: Optional[AsyncIoTClientConfig] = 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/async_io_t.py
18433 18434 18435 18436 18437 18438 18439 18440 18441 18442 18443 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459 18460 18461 18462 18463 18464 18465 18466 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482 18483 18484 18485 18486 18487 18488 18489 18490 18491 18492 18493 18494 18495 18496 18497 18498 18499 18500 18501 18502 18503 18504 18505 18506 18507 18508 18509 18510 18511 18512 18513 | |