IoTEventsDataClient#
Index > IoTEventsData > IoTEventsDataClient
Auto-generated documentation for IoTEventsData type annotations stubs module types-boto3-iotevents-data.
IoTEventsDataClient#
Type annotations and code completion for boto3.client("iotevents-data").
 boto3 documentation
# IoTEventsDataClient usage example
from boto3.session import Session
from types_boto3_iotevents_data.client import IoTEventsDataClient
def get_iotevents-data_client() -> IoTEventsDataClient:
    return Session().client("iotevents-data")Exceptions#
boto3 client exceptions are generated in runtime.
This class provides code completion for boto3.client("iotevents-data").exceptions structure.
# Exceptions.exceptions usage example
client = boto3.client("iotevents-data")
try:
    do_something(client)
except (
    client.exceptions.ClientError,
    client.exceptions.InternalFailureException,
    client.exceptions.InvalidRequestException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ServiceUnavailableException,
    client.exceptions.ThrottlingException,
) as e:
    print(e)# Exceptions.exceptions type checking example
from types_boto3_iotevents_data.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
    ...Methods#
can_paginate#
Type annotations and code completion for boto3.client("iotevents-data").can_paginate method.
 boto3 documentation
# can_paginate method definition
def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...generate_presigned_url#
Type annotations and code completion for boto3.client("iotevents-data").generate_presigned_url method.
 boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...batch_acknowledge_alarm#
Acknowledges one or more alarms.
Type annotations and code completion for boto3.client("iotevents-data").batch_acknowledge_alarm method.
 boto3 documentation
# batch_acknowledge_alarm method definition
def batch_acknowledge_alarm(
    self,
    *,
    acknowledgeActionRequests: Sequence[AcknowledgeAlarmActionRequestTypeDef],  # (1)
) -> BatchAcknowledgeAlarmResponseTypeDef:  # (2)
    ...- See Sequence[AcknowledgeAlarmActionRequestTypeDef]
- See BatchAcknowledgeAlarmResponseTypeDef
# batch_acknowledge_alarm method usage example with argument unpacking
kwargs: BatchAcknowledgeAlarmRequestTypeDef = {  # (1)
    "acknowledgeActionRequests": ...,
}
parent.batch_acknowledge_alarm(**kwargs)batch_delete_detector#
Deletes one or more detectors that were created.
Type annotations and code completion for boto3.client("iotevents-data").batch_delete_detector method.
 boto3 documentation
# batch_delete_detector method definition
def batch_delete_detector(
    self,
    *,
    detectors: Sequence[DeleteDetectorRequestTypeDef],  # (1)
) -> BatchDeleteDetectorResponseTypeDef:  # (2)
    ...- See Sequence[DeleteDetectorRequestTypeDef]
- See BatchDeleteDetectorResponseTypeDef
# batch_delete_detector method usage example with argument unpacking
kwargs: BatchDeleteDetectorRequestTypeDef = {  # (1)
    "detectors": ...,
}
parent.batch_delete_detector(**kwargs)batch_disable_alarm#
Disables one or more alarms.
Type annotations and code completion for boto3.client("iotevents-data").batch_disable_alarm method.
 boto3 documentation
# batch_disable_alarm method definition
def batch_disable_alarm(
    self,
    *,
    disableActionRequests: Sequence[DisableAlarmActionRequestTypeDef],  # (1)
) -> BatchDisableAlarmResponseTypeDef:  # (2)
    ...- See Sequence[DisableAlarmActionRequestTypeDef]
- See BatchDisableAlarmResponseTypeDef
# batch_disable_alarm method usage example with argument unpacking
kwargs: BatchDisableAlarmRequestTypeDef = {  # (1)
    "disableActionRequests": ...,
}
parent.batch_disable_alarm(**kwargs)batch_enable_alarm#
Enables one or more alarms.
Type annotations and code completion for boto3.client("iotevents-data").batch_enable_alarm method.
 boto3 documentation
# batch_enable_alarm method definition
def batch_enable_alarm(
    self,
    *,
    enableActionRequests: Sequence[EnableAlarmActionRequestTypeDef],  # (1)
) -> BatchEnableAlarmResponseTypeDef:  # (2)
    ...- See Sequence[EnableAlarmActionRequestTypeDef]
- See BatchEnableAlarmResponseTypeDef
# batch_enable_alarm method usage example with argument unpacking
kwargs: BatchEnableAlarmRequestTypeDef = {  # (1)
    "enableActionRequests": ...,
}
parent.batch_enable_alarm(**kwargs)batch_put_message#
Sends a set of messages to the IoT Events system.
Type annotations and code completion for boto3.client("iotevents-data").batch_put_message method.
 boto3 documentation
# batch_put_message method definition
def batch_put_message(
    self,
    *,
    messages: Sequence[MessageTypeDef],  # (1)
) -> BatchPutMessageResponseTypeDef:  # (2)
    ...- See Sequence[MessageTypeDef]
- See BatchPutMessageResponseTypeDef
# batch_put_message method usage example with argument unpacking
kwargs: BatchPutMessageRequestTypeDef = {  # (1)
    "messages": ...,
}
parent.batch_put_message(**kwargs)batch_reset_alarm#
Resets one or more alarms.
Type annotations and code completion for boto3.client("iotevents-data").batch_reset_alarm method.
 boto3 documentation
# batch_reset_alarm method definition
def batch_reset_alarm(
    self,
    *,
    resetActionRequests: Sequence[ResetAlarmActionRequestTypeDef],  # (1)
) -> BatchResetAlarmResponseTypeDef:  # (2)
    ...- See Sequence[ResetAlarmActionRequestTypeDef]
- See BatchResetAlarmResponseTypeDef
# batch_reset_alarm method usage example with argument unpacking
kwargs: BatchResetAlarmRequestTypeDef = {  # (1)
    "resetActionRequests": ...,
}
parent.batch_reset_alarm(**kwargs)batch_snooze_alarm#
Changes one or more alarms to the snooze mode.
Type annotations and code completion for boto3.client("iotevents-data").batch_snooze_alarm method.
 boto3 documentation
# batch_snooze_alarm method definition
def batch_snooze_alarm(
    self,
    *,
    snoozeActionRequests: Sequence[SnoozeAlarmActionRequestTypeDef],  # (1)
) -> BatchSnoozeAlarmResponseTypeDef:  # (2)
    ...- See Sequence[SnoozeAlarmActionRequestTypeDef]
- See BatchSnoozeAlarmResponseTypeDef
# batch_snooze_alarm method usage example with argument unpacking
kwargs: BatchSnoozeAlarmRequestTypeDef = {  # (1)
    "snoozeActionRequests": ...,
}
parent.batch_snooze_alarm(**kwargs)batch_update_detector#
Updates the state, variable values, and timer settings of one or more detectors (instances) of a specified detector model.
Type annotations and code completion for boto3.client("iotevents-data").batch_update_detector method.
 boto3 documentation
# batch_update_detector method definition
def batch_update_detector(
    self,
    *,
    detectors: Sequence[UpdateDetectorRequestTypeDef],  # (1)
) -> BatchUpdateDetectorResponseTypeDef:  # (2)
    ...- See Sequence[UpdateDetectorRequestTypeDef]
- See BatchUpdateDetectorResponseTypeDef
# batch_update_detector method usage example with argument unpacking
kwargs: BatchUpdateDetectorRequestTypeDef = {  # (1)
    "detectors": ...,
}
parent.batch_update_detector(**kwargs)describe_alarm#
Retrieves information about an alarm.
Type annotations and code completion for boto3.client("iotevents-data").describe_alarm method.
 boto3 documentation
# describe_alarm method definition
def describe_alarm(
    self,
    *,
    alarmModelName: str,
    keyValue: str = ...,
) -> DescribeAlarmResponseTypeDef:  # (1)
    ...# describe_alarm method usage example with argument unpacking
kwargs: DescribeAlarmRequestTypeDef = {  # (1)
    "alarmModelName": ...,
}
parent.describe_alarm(**kwargs)describe_detector#
Returns information about the specified detector (instance).
Type annotations and code completion for boto3.client("iotevents-data").describe_detector method.
 boto3 documentation
# describe_detector method definition
def describe_detector(
    self,
    *,
    detectorModelName: str,
    keyValue: str = ...,
) -> DescribeDetectorResponseTypeDef:  # (1)
    ...# describe_detector method usage example with argument unpacking
kwargs: DescribeDetectorRequestTypeDef = {  # (1)
    "detectorModelName": ...,
}
parent.describe_detector(**kwargs)list_alarms#
Lists one or more alarms.
Type annotations and code completion for boto3.client("iotevents-data").list_alarms method.
 boto3 documentation
# list_alarms method definition
def list_alarms(
    self,
    *,
    alarmModelName: str,
    nextToken: str = ...,
    maxResults: int = ...,
) -> ListAlarmsResponseTypeDef:  # (1)
    ...# list_alarms method usage example with argument unpacking
kwargs: ListAlarmsRequestTypeDef = {  # (1)
    "alarmModelName": ...,
}
parent.list_alarms(**kwargs)list_detectors#
Lists detectors (the instances of a detector model).
Type annotations and code completion for boto3.client("iotevents-data").list_detectors method.
 boto3 documentation
# list_detectors method definition
def list_detectors(
    self,
    *,
    detectorModelName: str,
    stateName: str = ...,
    nextToken: str = ...,
    maxResults: int = ...,
) -> ListDetectorsResponseTypeDef:  # (1)
    ...# list_detectors method usage example with argument unpacking
kwargs: ListDetectorsRequestTypeDef = {  # (1)
    "detectorModelName": ...,
}
parent.list_detectors(**kwargs)