IoT1ClickDevicesServiceClient#
Index > IoT1ClickDevicesService > IoT1ClickDevicesServiceClient
Auto-generated documentation for IoT1ClickDevicesService type annotations stubs module mypy-boto3-iot1click-devices.
IoT1ClickDevicesServiceClient#
Type annotations and code completion for boto3.client("iot1click-devices")
.
boto3 documentation
# IoT1ClickDevicesServiceClient usage example
from boto3.session import Session
from mypy_boto3_iot1click_devices.client import IoT1ClickDevicesServiceClient
def get_iot1click-devices_client() -> IoT1ClickDevicesServiceClient:
return Session().client("iot1click-devices")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("iot1click-devices").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("iot1click-devices")
try:
do_something(client)
except (
client.exceptions.ClientError,
client.exceptions.ForbiddenException,
client.exceptions.InternalFailureException,
client.exceptions.InvalidRequestException,
client.exceptions.PreconditionFailedException,
client.exceptions.RangeNotSatisfiableException,
client.exceptions.ResourceConflictException,
client.exceptions.ResourceNotFoundException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_iot1click_devices.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("iot1click-devices").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
claim_devices_by_claim_code#
Adds device(s) to your account (i.e., claim one or more devices) if and only if you received a claim code with the device(s).
Type annotations and code completion for boto3.client("iot1click-devices").claim_devices_by_claim_code
method.
boto3 documentation
# claim_devices_by_claim_code method definition
def claim_devices_by_claim_code(
self,
*,
ClaimCode: str,
) -> ClaimDevicesByClaimCodeResponseTypeDef: # (1)
...
# claim_devices_by_claim_code method usage example with argument unpacking
kwargs: ClaimDevicesByClaimCodeRequestRequestTypeDef = { # (1)
"ClaimCode": ...,
}
parent.claim_devices_by_claim_code(**kwargs)
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("iot1click-devices").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
describe_device#
Given a device ID, returns a DescribeDeviceResponse object describing the details of the device.
Type annotations and code completion for boto3.client("iot1click-devices").describe_device
method.
boto3 documentation
# describe_device method definition
def describe_device(
self,
*,
DeviceId: str,
) -> DescribeDeviceResponseTypeDef: # (1)
...
# describe_device method usage example with argument unpacking
kwargs: DescribeDeviceRequestRequestTypeDef = { # (1)
"DeviceId": ...,
}
parent.describe_device(**kwargs)
finalize_device_claim#
Given a device ID, finalizes the claim request for the associated device.
Type annotations and code completion for boto3.client("iot1click-devices").finalize_device_claim
method.
boto3 documentation
# finalize_device_claim method definition
def finalize_device_claim(
self,
*,
DeviceId: str,
Tags: Mapping[str, str] = ...,
) -> FinalizeDeviceClaimResponseTypeDef: # (1)
...
# finalize_device_claim method usage example with argument unpacking
kwargs: FinalizeDeviceClaimRequestRequestTypeDef = { # (1)
"DeviceId": ...,
}
parent.finalize_device_claim(**kwargs)
generate_presigned_url#
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("iot1click-devices").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:
...
get_device_methods#
Given a device ID, returns the invokable methods associated with the device.
Type annotations and code completion for boto3.client("iot1click-devices").get_device_methods
method.
boto3 documentation
# get_device_methods method definition
def get_device_methods(
self,
*,
DeviceId: str,
) -> GetDeviceMethodsResponseTypeDef: # (1)
...
# get_device_methods method usage example with argument unpacking
kwargs: GetDeviceMethodsRequestRequestTypeDef = { # (1)
"DeviceId": ...,
}
parent.get_device_methods(**kwargs)
initiate_device_claim#
Given a device ID, initiates a claim request for the associated device.
Type annotations and code completion for boto3.client("iot1click-devices").initiate_device_claim
method.
boto3 documentation
# initiate_device_claim method definition
def initiate_device_claim(
self,
*,
DeviceId: str,
) -> InitiateDeviceClaimResponseTypeDef: # (1)
...
# initiate_device_claim method usage example with argument unpacking
kwargs: InitiateDeviceClaimRequestRequestTypeDef = { # (1)
"DeviceId": ...,
}
parent.initiate_device_claim(**kwargs)
invoke_device_method#
Given a device ID, issues a request to invoke a named device method (with possible parameters).
Type annotations and code completion for boto3.client("iot1click-devices").invoke_device_method
method.
boto3 documentation
# invoke_device_method method definition
def invoke_device_method(
self,
*,
DeviceId: str,
DeviceMethod: DeviceMethodTypeDef = ..., # (1)
DeviceMethodParameters: str = ...,
) -> InvokeDeviceMethodResponseTypeDef: # (2)
...
# invoke_device_method method usage example with argument unpacking
kwargs: InvokeDeviceMethodRequestRequestTypeDef = { # (1)
"DeviceId": ...,
}
parent.invoke_device_method(**kwargs)
list_device_events#
Using a device ID, returns a DeviceEventsResponse object containing an array of events for the device.
Type annotations and code completion for boto3.client("iot1click-devices").list_device_events
method.