update_model
¶
update_model(
model_name: ModelName,
*,
config_overrides: Optional[LookoutEquipmentClientConfig] = 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
>>> client.update_model(model_name='sample-model', labels_input_configuration={'LabelGroupName': 'sample-label-group'})
Source code in docs_src/capo_lookoutequipment/_services/lookout_equipment.py
3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 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 | |