Skip to content

IoT1ClickProjectsClient#

Index > IoT1ClickProjects > IoT1ClickProjectsClient

Auto-generated documentation for IoT1ClickProjects type annotations stubs module types-aiobotocore-iot1click-projects.

IoT1ClickProjectsClient#

Type annotations and code completion for session.create_client("iot1click-projects") boto3 documentation

IoT1ClickProjectsClient usage example

from aiobotocore.session import get_session
from types_aiobotocore_iot1click_projects.client import IoT1ClickProjectsClient

session = get_session()
async with session.create_client("iot1click-projects") as client:
    client: IoT1ClickProjectsClient

Exceptions#

aiobotocore client exceptions are generated in runtime. This class provides code completion for session.create_client("iot1click-projects").exceptions structure.

IoT1ClickProjectsClient.exceptions usage example

async with session.create_client("iot1click-projects") as client:
    try:
        do_something(client)
    except (
            client.ClientError,
        client.InternalFailureException,
        client.InvalidRequestException,
        client.ResourceConflictException,
        client.ResourceNotFoundException,
        client.TooManyRequestsException,
    ) as e:
        print(e)
IoT1ClickProjectsClient usage type checking example

from types_aiobotocore_iot1click_projects.client import Exceptions

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

Methods#

associate_device_with_placement#

Associates a physical device with a placement.

Type annotations and code completion for session.create_client("iot1click-projects").associate_device_with_placement method. boto3 documentation

# associate_device_with_placement method definition

await def associate_device_with_placement(
    self,
    *,
    projectName: str,
    placementName: str,
    deviceId: str,
    deviceTemplateName: str,
) -> Dict[str, Any]:
    ...
# associate_device_with_placement method usage example with argument unpacking

kwargs: AssociateDeviceWithPlacementRequestRequestTypeDef = {  # (1)
    "projectName": ...,
    "placementName": ...,
    "deviceId": ...,
    "deviceTemplateName": ...,
}

parent.associate_device_with_placement(**kwargs)
  1. See AssociateDeviceWithPlacementRequestRequestTypeDef

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for session.create_client("iot1click-projects").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 session.create_client("iot1click-projects").close method. boto3 documentation

# close method definition

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

create_placement#

Creates an empty placement.

Type annotations and code completion for session.create_client("iot1click-projects").create_placement method. boto3 documentation

# create_placement method definition

await def create_placement(
    self,
    *,
    placementName: str,
    projectName: str,
    attributes: Mapping[str, str] = ...,
) -> Dict[str, Any]:
    ...
# create_placement method usage example with argument unpacking

kwargs: CreatePlacementRequestRequestTypeDef = {  # (1)
    "placementName": ...,
    "projectName": ...,
}

parent.create_placement(**kwargs)
  1. See CreatePlacementRequestRequestTypeDef

create_project#

Creates an empty project with a placement template.

Type annotations and code completion for session.create_client("iot1click-projects").create_project method. boto3 documentation

# create_project method definition

await def create_project(
    self,
    *,
    projectName: str,
    description: str = ...,
    placementTemplate: PlacementTemplateTypeDef = ...,  # (1)
    tags: Mapping[str, str] = ...,
) -> Dict[str, Any]:
    ...
  1. See PlacementTemplateTypeDef
# create_project method usage example with argument unpacking

kwargs: CreateProjectRequestRequestTypeDef = {  # (1)
    "projectName": ...,
}

parent.create_project(**kwargs)
  1. See CreateProjectRequestRequestTypeDef

delete_placement#

Deletes a placement.

Type annotations and code completion for session.create_client("iot1click-projects").delete_placement method. boto3 documentation

# delete_placement method definition

await def delete_placement(
    self,
    *,
    placementName: str,
    projectName: str,
) -> Dict[str, Any]:
    ...
# delete_placement method usage example with argument unpacking

kwargs: DeletePlacementRequestRequestTypeDef = {  # (1)
    "placementName": ...,
    "projectName": ...,
}

parent.delete_placement(**kwargs)
  1. See DeletePlacementRequestRequestTypeDef

delete_project#

Deletes a project.

Type annotations and code completion for session.create_client("iot1click-projects").delete_project method. boto3 documentation

# delete_project method definition

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

kwargs: DeleteProjectRequestRequestTypeDef = {  # (1)
    "projectName": ...,
}

parent.delete_project(**kwargs)
  1. See DeleteProjectRequestRequestTypeDef

describe_placement#

Describes a placement in a project.

Type annotations and code completion for session.create_client("iot1click-projects").describe_placement method. boto3 documentation

# describe_placement method definition

await def describe_placement(
    self,
    *,
    placementName: str,
    projectName: str,
) -> DescribePlacementResponseTypeDef:  # (1)
    ...
  1. See DescribePlacementResponseTypeDef
# describe_placement method usage example with argument unpacking

kwargs: DescribePlacementRequestRequestTypeDef = {  # (1)
    "placementName": ...,
    "projectName": ...,
}

parent.describe_placement(**kwargs)
  1. See DescribePlacementRequestRequestTypeDef

describe_project#

Returns an object describing a project.

Type annotations and code completion for session.create_client("iot1click-projects").describe_project method. boto3 documentation

# describe_project method definition

await def describe_project(
    self,
    *,
    projectName: str,
) -> DescribeProjectResponseTypeDef:  # (1)
    ...
  1. See DescribeProjectResponseTypeDef
# describe_project method usage example with argument unpacking

kwargs: DescribeProjectRequestRequestTypeDef = {  # (1)
    "projectName": ...,
}

parent.describe_project(**kwargs)
  1. See DescribeProjectRequestRequestTypeDef

disassociate_device_from_placement#

Removes a physical device from a placement.

Type annotations and code completion for session.create_client("iot1click-projects").disassociate_device_from_placement method. boto3 documentation

# disassociate_device_from_placement method definition

await def disassociate_device_from_placement(
    self,
    *,
    projectName: str,
    placementName: str,
    deviceTemplateName: str,
) -> Dict[str, Any]:
    ...
# disassociate_device_from_placement method usage example with argument unpacking

kwargs: DisassociateDeviceFromPlacementRequestRequestTypeDef = {  # (1)
    "projectName": ...,
    "placementName": ...,
    "deviceTemplateName": ...,
}

parent.disassociate_device_from_placement(**kwargs)
  1. See DisassociateDeviceFromPlacementRequestRequestTypeDef

generate_presigned_url#

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

Type annotations and code completion for session.create_client("iot1click-projects").generate_presigned_url method. boto3 documentation

# generate_presigned_url method definition

await def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

get_devices_in_placement#

Returns an object enumerating the devices in a placement.

Type annotations and code completion for session.create_client("iot1click-projects").get_devices_in_placement method. boto3 documentation

# get_devices_in_placement method definition

await def get_devices_in_placement(
    self,
    *,
    projectName: str,
    placementName: str,
) -> GetDevicesInPlacementResponseTypeDef:  # (1)
    ...
  1. See GetDevicesInPlacementResponseTypeDef
# get_devices_in_placement method usage example with argument unpacking

kwargs: GetDevicesInPlacementRequestRequestTypeDef = {  # (1)
    "projectName": ...,
    "placementName": ...,
}

parent.get_devices_in_placement(**kwargs)
  1. See GetDevicesInPlacementRequestRequestTypeDef

list_placements#

Lists the placement(s) of a project.

Type annotations and code completion for session.create_client("iot1click-projects").list_placements method. boto3 documentation

# list_placements method definition

await def list_placements(
    self,
    *,
    projectName: str,
    nextToken: str = ...,
    maxResults: int = ...,
) -> ListPlacementsResponseTypeDef:  # (1)
    ...
  1. See ListPlacementsResponseTypeDef
# list_placements method usage example with argument unpacking

kwargs: ListPlacementsRequestRequestTypeDef = {  # (1)
    "projectName": ...,
}

parent.list_placements(**kwargs)
  1. See ListPlacementsRequestRequestTypeDef

list_projects#

Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.

Type annotations and code completion for session.create_client("iot1click-projects").list_projects method. boto3 documentation

# list_projects method definition

await def list_projects(
    self,
    *,
    nextToken: str = ...,
    maxResults: int = ...,
) -> ListProjectsResponseTypeDef:  # (1)
    ...
  1. See ListProjectsResponseTypeDef
# list_projects method usage example with argument unpacking

kwargs: ListProjectsRequestRequestTypeDef = {  # (1)
    "nextToken": ...,
}

parent.list_projects(**kwargs)
  1. See ListProjectsRequestRequestTypeDef

list_tags_for_resource#

Lists the tags (metadata key/value pairs) which you have assigned to the resource.

Type annotations and code completion for session.create_client("iot1click-projects").list_tags_for_resource method. boto3 documentation

# list_tags_for_resource method definition

await def list_tags_for_resource(
    self,
    *,
    resourceArn: str,
) -> ListTagsForResourceResponseTypeDef:  # (1)
    ...
  1. See ListTagsForResourceResponseTypeDef
# list_tags_for_resource method usage example with argument unpacking

kwargs: ListTagsForResourceRequestRequestTypeDef = {  # (1)
    "resourceArn": ...,
}

parent.list_tags_for_resource(**kwargs)
  1. See ListTagsForResourceRequestRequestTypeDef

tag_resource#

Creates or modifies tags for a resource.

Type annotations and code completion for session.create_client("iot1click-projects").tag_resource method. boto3 documentation

# tag_resource method definition

await def tag_resource(
    self,
    *,
    resourceArn: str,
    tags: Mapping[str, str],
) -> Dict[str, Any]:
    ...
# tag_resource method usage example with argument unpacking

kwargs: TagResourceRequestRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "tags": ...,
}

parent.tag_resource(**kwargs)
  1. See TagResourceRequestRequestTypeDef

untag_resource#

Removes one or more tags (metadata key/value pairs) from a resource.

Type annotations and code completion for session.create_client("iot1click-projects").untag_resource method. boto3 documentation

# untag_resource method definition

await def untag_resource(
    self,
    *,
    resourceArn: str,
    tagKeys: Sequence[str],
) -> Dict[str, Any]:
    ...
# untag_resource method usage example with argument unpacking

kwargs: UntagResourceRequestRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "tagKeys": ...,
}

parent.untag_resource(**kwargs)
  1. See UntagResourceRequestRequestTypeDef

update_placement#

Updates a placement with the given attributes.

Type annotations and code completion for session.create_client("iot1click-projects").update_placement method. boto3 documentation

# update_placement method definition

await def update_placement(
    self,
    *,
    placementName: str,
    projectName: str,
    attributes: Mapping[str, str] = ...,
) -> Dict[str, Any]:
    ...
# update_placement method usage example with argument unpacking

kwargs: UpdatePlacementRequestRequestTypeDef = {  # (1)
    "placementName": ...,
    "projectName": ...,
}

parent.update_placement(**kwargs)
  1. See UpdatePlacementRequestRequestTypeDef

update_project#

Updates a project associated with your AWS account and region.

Type annotations and code completion for session.create_client("iot1click-projects").update_project method. boto3 documentation

# update_project method definition

await def update_project(
    self,
    *,
    projectName: str,
    description: str = ...,
    placementTemplate: PlacementTemplateTypeDef = ...,  # (1)
) -> Dict[str, Any]:
    ...
  1. See PlacementTemplateTypeDef
# update_project method usage example with argument unpacking

kwargs: UpdateProjectRequestRequestTypeDef = {  # (1)
    "projectName": ...,
}

parent.update_project(**kwargs)
  1. See UpdateProjectRequestRequestTypeDef

__aenter__#

Type annotations and code completion for session.create_client("iot1click-projects").__aenter__ method. boto3 documentation

# __aenter__ method definition

await def __aenter__(
    self,
) -> IoT1ClickProjectsClient:
    ...

__aexit__#

Type annotations and code completion for session.create_client("iot1click-projects").__aexit__ method. boto3 documentation

# __aexit__ method definition

await def __aexit__(
    self,
    exc_type: Any,
    exc_val: Any,
    exc_tb: Any,
) -> Any:
    ...

get_paginator#

Type annotations and code completion for session.create_client("iot1click-projects").get_paginator method with overloads.