update_detector_model
async
¶
update_detector_model(
detector_model_name: DetectorModelName,
detector_model_definition: DetectorModelDefinition,
role_arn: AmazonResourceName,
*,
config_overrides: Optional[AsyncIoTEventsClientConfig] = 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/async_io_t_events.py
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 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 | |