Skip to content

IoTEventsClient#

Index > IoTEvents > IoTEventsClient

Auto-generated documentation for IoTEvents type annotations stubs module mypy-boto3-iotevents.

IoTEventsClient#

Type annotations and code completion for boto3.client("iotevents"). boto3 documentation

# IoTEventsClient usage example

from boto3.session import Session
from mypy_boto3_iotevents.client import IoTEventsClient

def get_iotevents_client() -> IoTEventsClient:
    return Session().client("iotevents")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("iotevents").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("iotevents")

try:
    do_something(client)
except (
    client.exceptions.ClientError,
    client.exceptions.InternalFailureException,
    client.exceptions.InvalidRequestException,
    client.exceptions.LimitExceededException,
    client.exceptions.ResourceAlreadyExistsException,
    client.exceptions.ResourceInUseException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ServiceUnavailableException,
    client.exceptions.ThrottlingException,
    client.exceptions.UnsupportedOperationException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_iotevents.client import Exceptions

def handle_error(exc: Exceptions.ClientError) -> None:
    ...

Methods#

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("iotevents").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").close method. boto3 documentation

# close method definition

def close(
    self,
) -> None:
    ...

create_alarm_model#

Creates an alarm model to monitor an AWS IoT Events input attribute.

Type annotations and code completion for boto3.client("iotevents").create_alarm_model method. boto3 documentation

# create_alarm_model method definition

def create_alarm_model(
    self,
    *,
    alarmModelName: str,
    roleArn: str,
    alarmRule: AlarmRuleTypeDef,  # (1)
    alarmModelDescription: str = ...,
    tags: Sequence[TagTypeDef] = ...,  # (2)
    key: str = ...,
    severity: int = ...,
    alarmNotification: AlarmNotificationTypeDef = ...,  # (3)
    alarmEventActions: AlarmEventActionsTypeDef = ...,  # (4)
    alarmCapabilities: AlarmCapabilitiesTypeDef = ...,  # (5)
) -> CreateAlarmModelResponseTypeDef:  # (6)
    ...
  1. See AlarmRuleTypeDef
  2. See TagTypeDef
  3. See AlarmNotificationTypeDef
  4. See AlarmEventActionsTypeDef
  5. See AlarmCapabilitiesTypeDef
  6. See CreateAlarmModelResponseTypeDef
# create_alarm_model method usage example with argument unpacking

kwargs: CreateAlarmModelRequestRequestTypeDef = {  # (1)
    "alarmModelName": ...,
    "roleArn": ...,
    "alarmRule": ...,
}

parent.create_alarm_model(**kwargs)
  1. See CreateAlarmModelRequestRequestTypeDef

create_detector_model#

Creates a detector model.

Type annotations and code completion for boto3.client("iotevents").create_detector_model method. boto3 documentation

# create_detector_model method definition

def create_detector_model(
    self,
    *,
    detectorModelName: str,
    detectorModelDefinition: DetectorModelDefinitionTypeDef,  # (1)
    roleArn: str,
    detectorModelDescription: str = ...,
    key: str = ...,
    tags: Sequence[TagTypeDef] = ...,  # (2)
    evaluationMethod: EvaluationMethodType = ...,  # (3)
) -> CreateDetectorModelResponseTypeDef:  # (4)
    ...
  1. See DetectorModelDefinitionTypeDef
  2. See TagTypeDef
  3. See EvaluationMethodType
  4. See CreateDetectorModelResponseTypeDef
# create_detector_model method usage example with argument unpacking

kwargs: CreateDetectorModelRequestRequestTypeDef = {  # (1)
    "detectorModelName": ...,
    "detectorModelDefinition": ...,
    "roleArn": ...,
}

parent.create_detector_model(**kwargs)
  1. See CreateDetectorModelRequestRequestTypeDef

create_input#

Creates an input.

Type annotations and code completion for boto3.client("iotevents").create_input method. boto3 documentation

# create_input method definition

def create_input(
    self,
    *,
    inputName: str,
    inputDefinition: InputDefinitionTypeDef,  # (1)
    inputDescription: str = ...,
    tags: Sequence[TagTypeDef] = ...,  # (2)
) -> CreateInputResponseTypeDef:  # (3)
    ...
  1. See InputDefinitionTypeDef
  2. See TagTypeDef
  3. See CreateInputResponseTypeDef
# create_input method usage example with argument unpacking

kwargs: CreateInputRequestRequestTypeDef = {  # (1)
    "inputName": ...,
    "inputDefinition": ...,
}

parent.create_input(**kwargs)
  1. See CreateInputRequestRequestTypeDef

delete_alarm_model#

Deletes an alarm model.

Type annotations and code completion for boto3.client("iotevents").delete_alarm_model method. boto3 documentation

# delete_alarm_model method definition

def delete_alarm_model(
    self,
    *,
    alarmModelName: str,
) -> Dict[str, Any]:
    ...
# delete_alarm_model method usage example with argument unpacking

kwargs: DeleteAlarmModelRequestRequestTypeDef = {  # (1)
    "alarmModelName": ...,
}

parent.delete_alarm_model(**kwargs)
  1. See DeleteAlarmModelRequestRequestTypeDef

delete_detector_model#

Deletes a detector model.

Type annotations and code completion for boto3.client("iotevents").delete_detector_model method. boto3 documentation

# delete_detector_model method definition

def delete_detector_model(
    self,
    *,
    detectorModelName: str,
) -> Dict[str, Any]:
    ...
# delete_detector_model method usage example with argument unpacking

kwargs: DeleteDetectorModelRequestRequestTypeDef = {  # (1)
    "detectorModelName": ...,
}

parent.delete_detector_model(**kwargs)
  1. See DeleteDetectorModelRequestRequestTypeDef

delete_input#

Deletes an input.

Type annotations and code completion for boto3.client("iotevents").delete_input method. boto3 documentation

# delete_input method definition

def delete_input(
    self,
    *,
    inputName: str,
) -> Dict[str, Any]:
    ...
# delete_input method usage example with argument unpacking

kwargs: DeleteInputRequestRequestTypeDef = {  # (1)
    "inputName": ...,
}

parent.delete_input(**kwargs)
  1. See DeleteInputRequestRequestTypeDef

describe_alarm_model#

Retrieves information about an alarm model.

Type annotations and code completion for boto3.client("iotevents").describe_alarm_model method. boto3 documentation

# describe_alarm_model method definition

def describe_alarm_model(
    self,
    *,
    alarmModelName: str,
    alarmModelVersion: str = ...,
) -> DescribeAlarmModelResponseTypeDef:  # (1)
    ...
  1. See DescribeAlarmModelResponseTypeDef
# describe_alarm_model method usage example with argument unpacking

kwargs: DescribeAlarmModelRequestRequestTypeDef = {  # (1)
    "alarmModelName": ...,
}

parent.describe_alarm_model(**kwargs)
  1. See DescribeAlarmModelRequestRequestTypeDef

describe_detector_model#

Describes a detector model.

Type annotations and code completion for boto3.client("iotevents").describe_detector_model method. boto3 documentation

# describe_detector_model method definition

def describe_detector_model(
    self,
    *,
    detectorModelName: str,
    detectorModelVersion: str = ...,
) -> DescribeDetectorModelResponseTypeDef:  # (1)
    ...
  1. See DescribeDetectorModelResponseTypeDef
# describe_detector_model method usage example with argument unpacking

kwargs: DescribeDetectorModelRequestRequestTypeDef = {  # (1)
    "detectorModelName": ...,
}

parent.describe_detector_model(**kwargs)
  1. See DescribeDetectorModelRequestRequestTypeDef

describe_detector_model_analysis#

Retrieves runtime information about a detector model analysis.

Type annotations and code completion for boto3.client("iotevents").describe_detector_model_analysis method. boto3 documentation

# describe_detector_model_analysis method definition

def describe_detector_model_analysis(
    self,
    *,
    analysisId: str,
) -> DescribeDetectorModelAnalysisResponseTypeDef:  # (1)
    ...
  1. See DescribeDetectorModelAnalysisResponseTypeDef
# describe_detector_model_analysis method usage example with argument unpacking

kwargs: DescribeDetectorModelAnalysisRequestRequestTypeDef = {  # (1)
    "analysisId": ...,
}

parent.describe_detector_model_analysis(**kwargs)
  1. See DescribeDetectorModelAnalysisRequestRequestTypeDef

describe_input#

Describes an input.

Type annotations and code completion for boto3.client("iotevents").describe_input method. boto3 documentation

# describe_input method definition

def describe_input(
    self,
    *,
    inputName: str,
) -> DescribeInputResponseTypeDef:  # (1)
    ...
  1. See DescribeInputResponseTypeDef
# describe_input method usage example with argument unpacking

kwargs: DescribeInputRequestRequestTypeDef = {  # (1)
    "inputName": ...,
}

parent.describe_input(**kwargs)
  1. See DescribeInputRequestRequestTypeDef

describe_logging_options#

Retrieves the current settings of the AWS IoT Events logging options.

Type annotations and code completion for boto3.client("iotevents").describe_logging_options method. boto3 documentation

# describe_logging_options method definition

def describe_logging_options(
    self,
) -> DescribeLoggingOptionsResponseTypeDef:  # (1)
    ...
  1. See DescribeLoggingOptionsResponseTypeDef

generate_presigned_url#

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for boto3.client("iotevents").generate_presigned_url method.