update_detector_model
¶
update_detector_model(
detector_model_name: DetectorModelName,
detector_model_definition: DetectorModelDefinition,
role_arn: AmazonResourceName,
*,
config_overrides: Optional[IoTEventsClientConfig] = None,
detector_model_description: Optional[DetectorModelDescription] = None,
evaluation_method: Optional[EvaluationMethod] = None,
) -> UpdateDetectorModelResponse
Updates a detector model. Detectors (instances) spawned by the previous version are deleted and then re-created as new inputs arrive.
Parameters:
-
detector_model_name(DetectorModelName) –The name of the detector model that is updated.
-
detector_model_definition(DetectorModelDefinition) –Information that defines how a detector operates.
-
detector_model_description(Optional[DetectorModelDescription], default:None) –A brief description of the detector model.
-
role_arn(AmazonResourceName) –The ARN of the role that grants permission to AWS IoT Events to perform its operations.
-
evaluation_method(Optional[EvaluationMethod], default:None) –Information about the order in which events are evaluated and how actions are executed.
Raises:
-
InternalFailureException–An internal failure occurred.
-
InvalidRequestException–The request was invalid.
-
ResourceInUseException–The resource is in use.
-
ResourceNotFoundException–The resource was not found.
-
ServiceUnavailableException–The service is currently unavailable.
-
ThrottlingException–The request could not be completed due to throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot_events/_services/io_t_events.py
1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 | |