Skip to content

IoTAnalyticsClient#

Index > IoTAnalytics > IoTAnalyticsClient

Auto-generated documentation for IoTAnalytics type annotations stubs module mypy-boto3-iotanalytics.

IoTAnalyticsClient#

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

# IoTAnalyticsClient usage example

from boto3.session import Session
from mypy_boto3_iotanalytics.client import IoTAnalyticsClient

def get_iotanalytics_client() -> IoTAnalyticsClient:
    return Session().client("iotanalytics")

Exceptions#

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

# Exceptions.exceptions usage example

client = boto3.client("iotanalytics")

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

from mypy_boto3_iotanalytics.client import Exceptions

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

Methods#

batch_put_message#

Sends messages to a channel.

Type annotations and code completion for boto3.client("iotanalytics").batch_put_message method. boto3 documentation

# batch_put_message method definition

def batch_put_message(
    self,
    *,
    channelName: str,
    messages: Sequence[MessageTypeDef],  # (1)
) -> BatchPutMessageResponseTypeDef:  # (2)
    ...
  1. See MessageTypeDef
  2. See BatchPutMessageResponseTypeDef
# batch_put_message method usage example with argument unpacking

kwargs: BatchPutMessageRequestRequestTypeDef = {  # (1)
    "channelName": ...,
    "messages": ...,
}

parent.batch_put_message(**kwargs)
  1. See BatchPutMessageRequestRequestTypeDef

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("iotanalytics").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

cancel_pipeline_reprocessing#

Cancels the reprocessing of data through the pipeline.

Type annotations and code completion for boto3.client("iotanalytics").cancel_pipeline_reprocessing method. boto3 documentation

# cancel_pipeline_reprocessing method definition

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

kwargs: CancelPipelineReprocessingRequestRequestTypeDef = {  # (1)
    "pipelineName": ...,
    "reprocessingId": ...,
}

parent.cancel_pipeline_reprocessing(**kwargs)
  1. See CancelPipelineReprocessingRequestRequestTypeDef

close#

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("iotanalytics").close method. boto3 documentation

# close method definition

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

create_channel#

Used to create a channel.

Type annotations and code completion for boto3.client("iotanalytics").create_channel method. boto3 documentation

# create_channel method definition

def create_channel(
    self,
    *,
    channelName: str,
    channelStorage: Union[ChannelStorageTypeDef, ChannelStorageOutputTypeDef] = ...,  # (1)
    retentionPeriod: RetentionPeriodTypeDef = ...,  # (2)
    tags: Sequence[TagTypeDef] = ...,  # (3)
) -> CreateChannelResponseTypeDef:  # (4)
    ...
  1. See ChannelStorageTypeDef ChannelStorageOutputTypeDef
  2. See RetentionPeriodTypeDef
  3. See TagTypeDef
  4. See CreateChannelResponseTypeDef
# create_channel method usage example with argument unpacking

kwargs: CreateChannelRequestRequestTypeDef = {  # (1)
    "channelName": ...,
}

parent.create_channel(**kwargs)
  1. See CreateChannelRequestRequestTypeDef

create_dataset#

Used to create a dataset.

Type annotations and code completion for boto3.client("iotanalytics").create_dataset method. boto3 documentation

# create_dataset method definition

def create_dataset(
    self,
    *,
    datasetName: str,
    actions: Sequence[Union[DatasetActionTypeDef, DatasetActionOutputTypeDef]],  # (1)
    triggers: Sequence[DatasetTriggerTypeDef] = ...,  # (2)
    contentDeliveryRules: Sequence[DatasetContentDeliveryRuleTypeDef] = ...,  # (3)
    retentionPeriod: RetentionPeriodTypeDef = ...,  # (4)
    versioningConfiguration: VersioningConfigurationTypeDef = ...,  # (5)
    tags: Sequence[TagTypeDef] = ...,  # (6)
    lateDataRules: Sequence[LateDataRuleTypeDef] = ...,  # (7)
) -> CreateDatasetResponseTypeDef:  # (8)
    ...
  1. See DatasetActionTypeDef DatasetActionOutputTypeDef
  2. See DatasetTriggerTypeDef
  3. See DatasetContentDeliveryRuleTypeDef
  4. See RetentionPeriodTypeDef
  5. See VersioningConfigurationTypeDef
  6. See TagTypeDef
  7. See LateDataRuleTypeDef
  8. See CreateDatasetResponseTypeDef
# create_dataset method usage example with argument unpacking

kwargs: CreateDatasetRequestRequestTypeDef = {  # (1)
    "datasetName": ...,
    "actions": ...,
}

parent.create_dataset(**kwargs)
  1. See CreateDatasetRequestRequestTypeDef

create_dataset_content#

Creates the content of a dataset by applying a queryAction (a SQL query) or a containerAction (executing a containerized application).

Type annotations and code completion for boto3.client("iotanalytics").create_dataset_content method.