IoTEventsDataClient#
Index > IoTEventsData > IoTEventsDataClient
Auto-generated documentation for IoTEventsData type annotations stubs module mypy-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 mypy_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 mypy_boto3_iotevents_data.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
...
Methods#
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)
...
# batch_acknowledge_alarm method usage example with argument unpacking
kwargs: BatchAcknowledgeAlarmRequestRequestTypeDef = { # (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)
...
# batch_delete_detector method usage example with argument unpacking
kwargs: BatchDeleteDetectorRequestRequestTypeDef = { # (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)
...
# batch_disable_alarm method usage example with argument unpacking
kwargs: BatchDisableAlarmRequestRequestTypeDef = { # (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)
...
# batch_enable_alarm method usage example with argument unpacking
kwargs: BatchEnableAlarmRequestRequestTypeDef = { # (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)
...
# batch_put_message method usage example with argument unpacking
kwargs: BatchPutMessageRequestRequestTypeDef = { # (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)
...
# batch_reset_alarm method usage example with argument unpacking
kwargs: BatchResetAlarmRequestRequestTypeDef = { # (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)
...
# batch_snooze_alarm method usage example with argument unpacking
kwargs: BatchSnoozeAlarmRequestRequestTypeDef = { # (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)
...
# batch_update_detector method usage example with argument unpacking
kwargs: BatchUpdateDetectorRequestRequestTypeDef = { # (1)
"detectors": ...,
}
parent.batch_update_detector(**kwargs)
can_paginate#
Check if an operation can be paginated.
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:
...
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("iotevents-data").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
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: DescribeAlarmRequestRequestTypeDef = { # (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: DescribeDetectorRequestRequestTypeDef = { # (1)
"detectorModelName": ...,
}
parent.describe_detector(**kwargs)
generate_presigned_url#
Generate a presigned url given a client, its method, and arguments.
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:
...
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: ListAlarmsRequestRequestTypeDef = { # (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: ListDetectorsRequestRequestTypeDef = { # (1)
"detectorModelName": ...,
}
parent.list_detectors(**kwargs)