Skip to main content

Type annotations for boto3.IoTEvents 1.16.29 service, generated by mypy-boto3-buider 4.1.3

Project description

mypy-boto3-iotevents

PyPI - mypy-boto3-iotevents PyPI - Python Version Docs

boto3.typed

Type annotations for boto3.IoTEvents 1.16.29 service compatible with VSCode, PyCharm, mypy, pyright and other tools.

Generated by mypy-boto3-buider 4.1.3.

More information can be found on boto3-stubs page.

boto3-stubs demo

How to install

Install boto3-stubs for IoTEvents service.

python -m pip install boto3-stubs[iotevents]

Usage

VSCode

  • Install Python extension
  • Install Pylance extension
  • Set Pylance as your Python Language Server
  • Install boto-stubs[iotevents] in your environment: python -m pip install 'boto3-stubs[iotevents]'

Both type checking and auto-complete should work for IoTEvents service. No explicit type annotations required, write your boto3 code as usual.

PyCharm

  • Install boto-stubs[iotevents] in your environment: python -m pip install 'boto3-stubs[iotevents]'

Both type checking and auto-complete should work for IoTEvents service. No explicit type annotations required, write your boto3 code as usual. Auto-complete can be slow on big projects or if you have a lot of installed boto3-stubs submodules.

Other IDEs

Not tested, but as long as your IDE support mypy or pyright, everything should work.

mypy

  • Install mypy: python -m pip install mypy
  • Install boto-stubs[iotevents] in your environment: python -m pip install 'boto3-stubs[iotevents]'
  • Run mypy as usual

Type checking should work for IoTEvents service. No explicit type annotations required, write your boto3 code as usual.

pyright

  • Install pyright: yarn global add pyright
  • Install boto-stubs[iotevents] in your environment: python -m pip install 'boto3-stubs[iotevents]'
  • Optionally, you can install boto3-stubs to typings folder.

Type checking should work for IoTEvents service. No explicit type annotations required, write your boto3 code as usual.

Explicit type annotations

Client annotations

IoTEventsClient provides annotations for boto3.client("iotevents").

import boto3

from mypy_boto3_iotevents import IoTEventsClient

client: IoTEventsClient = boto3.client("iotevents")

# now client usage is checked by mypy and IDE should provide code auto-complete

# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: IoTEventsClient = session.client("iotevents")

Typed dictionations

mypy_boto3_iotevents.type_defs module contains structures and shapes assembled to typed dictionaries for additional type checking.

from mypy_boto3_iotevents.type_defs import (
    ActionTypeDef,
    AssetPropertyTimestampTypeDef,
    AssetPropertyValueTypeDef,
    AssetPropertyVariantTypeDef,
    AttributeTypeDef,
    ClearTimerActionTypeDef,
    CreateDetectorModelResponseTypeDef,
    CreateInputResponseTypeDef,
    DescribeDetectorModelResponseTypeDef,
    DescribeInputResponseTypeDef,
    DescribeLoggingOptionsResponseTypeDef,
    DetectorDebugOptionTypeDef,
    DetectorModelConfigurationTypeDef,
    DetectorModelDefinitionTypeDef,
    DetectorModelSummaryTypeDef,
    DetectorModelTypeDef,
    DetectorModelVersionSummaryTypeDef,
    DynamoDBActionTypeDef,
    DynamoDBv2ActionTypeDef,
    EventTypeDef,
    FirehoseActionTypeDef,
    InputConfigurationTypeDef,
    InputDefinitionTypeDef,
    InputSummaryTypeDef,
    InputTypeDef,
    IotEventsActionTypeDef,
    IotSiteWiseActionTypeDef,
    IotTopicPublishActionTypeDef,
    LambdaActionTypeDef,
    ListDetectorModelsResponseTypeDef,
    ListDetectorModelVersionsResponseTypeDef,
    ListInputsResponseTypeDef,
    ListTagsForResourceResponseTypeDef,
    LoggingOptionsTypeDef,
    OnEnterLifecycleTypeDef,
    OnExitLifecycleTypeDef,
    OnInputLifecycleTypeDef,
    PayloadTypeDef,
    ResetTimerActionTypeDef,
    SetTimerActionTypeDef,
    SetVariableActionTypeDef,
    SNSTopicPublishActionTypeDef,
    SqsActionTypeDef,
    StateTypeDef,
    TagTypeDef,
    TransitionEventTypeDef,
    UpdateDetectorModelResponseTypeDef,
    UpdateInputResponseTypeDef,
)

def get_structure() -> ActionTypeDef:
    return {
      ...
    }

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mypy-boto3-iotevents-1.16.29.0.tar.gz (10.1 kB view hashes)

Uploaded Source

Built Distribution

mypy_boto3_iotevents-1.16.29.0-py3-none-any.whl (13.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page