update_model
async
¶
update_model(
model_name: ModelName,
*,
config_overrides: Optional[AsyncLookoutEquipmentClientConfig] = None,
labels_input_configuration: Optional[LabelsInputConfiguration] = None,
role_arn: Optional[IamRoleArn] = None,
model_diagnostics_output_configuration: Optional[
ModelDiagnosticsOutputConfiguration
] = None,
) -> None
Updates a model in the account.
Parameters:
-
model_name(ModelName) –The name of the model to update.
-
role_arn(Optional[IamRoleArn], default:None) –The ARN of the model to update.
-
model_diagnostics_output_configuration(Optional[ModelDiagnosticsOutputConfiguration], default:None) –The Amazon S3 location where you want Amazon Lookout for Equipment to save the pointwise model diagnostics for the model. You must also specify the
RoleArnrequest parameter.
Raises:
-
AccessDeniedException–The request could not be completed because you do not have access to the resource.
-
ConflictException–The request could not be completed due to a conflict with the current state of the target resource.
-
InternalServerException–Processing of the request has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The resource requested could not be found. Verify the resource ID and retry your request.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy constraints specified by Amazon Lookout for Equipment or a related Amazon Web Services service that's being utilized.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Updates a model
>>> await client.update_model(model_name='sample-model', labels_input_configuration={'LabelGroupName': 'sample-label-group'})
Source code in docs_src/capo_lookoutequipment/_services/async_lookout_equipment.py
3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 | |