Skip to content

WorkSpacesThinClientClient#

Index > WorkSpacesThinClient > WorkSpacesThinClientClient

Auto-generated documentation for WorkSpacesThinClient type annotations stubs module mypy-boto3-workspaces-thin-client.

WorkSpacesThinClientClient#

Type annotations and code completion for boto3.client("workspaces-thin-client"). boto3 documentation

# WorkSpacesThinClientClient usage example

from boto3.session import Session
from mypy_boto3_workspaces_thin_client.client import WorkSpacesThinClientClient

def get_workspaces-thin-client_client() -> WorkSpacesThinClientClient:
    return Session().client("workspaces-thin-client")

Exceptions#

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

# Exceptions.exceptions usage example

client = boto3.client("workspaces-thin-client")

try:
    do_something(client)
except (
    client.exceptions.AccessDeniedException,
    client.exceptions.ClientError,
    client.exceptions.ConflictException,
    client.exceptions.InternalServerException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ServiceQuotaExceededException,
    client.exceptions.ThrottlingException,
    client.exceptions.ValidationException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_workspaces_thin_client.client import Exceptions

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

Methods#

can_paginate#

Check if an operation can be paginated.

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

# close method definition

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

create_environment#

Creates an environment for your thin client devices.

Type annotations and code completion for boto3.client("workspaces-thin-client").create_environment method. boto3 documentation

# create_environment method definition

def create_environment(
    self,
    *,
    desktopArn: str,
    name: str = ...,
    desktopEndpoint: str = ...,
    softwareSetUpdateSchedule: SoftwareSetUpdateScheduleType = ...,  # (1)
    maintenanceWindow: Union[MaintenanceWindowTypeDef, MaintenanceWindowExtraOutputTypeDef] = ...,  # (2)
    softwareSetUpdateMode: SoftwareSetUpdateModeType = ...,  # (3)
    desiredSoftwareSetId: str = ...,
    kmsKeyArn: str = ...,
    clientToken: str = ...,
    tags: Mapping[str, str] = ...,
    deviceCreationTags: Mapping[str, str] = ...,
) -> CreateEnvironmentResponseTypeDef:  # (4)
    ...
  1. See SoftwareSetUpdateScheduleType
  2. See MaintenanceWindowTypeDef MaintenanceWindowExtraOutputTypeDef
  3. See SoftwareSetUpdateModeType
  4. See CreateEnvironmentResponseTypeDef
# create_environment method usage example with argument unpacking

kwargs: CreateEnvironmentRequestRequestTypeDef = {  # (1)
    "desktopArn": ...,
}

parent.create_environment(**kwargs)
  1. See CreateEnvironmentRequestRequestTypeDef

delete_device#

Deletes a thin client device.

Type annotations and code completion for boto3.client("workspaces-thin-client").delete_device method. boto3 documentation

# delete_device method definition

def delete_device(
    self,
    *,
    id: str,
    clientToken: str = ...,
) -> Dict[str, Any]:
    ...
# delete_device method usage example with argument unpacking

kwargs: DeleteDeviceRequestRequestTypeDef = {  # (1)
    "id": ...,
}

parent.delete_device(**kwargs)
  1. See DeleteDeviceRequestRequestTypeDef

delete_environment#

Deletes an environment.

Type annotations and code completion for boto3.client("workspaces-thin-client").delete_environment method. boto3 documentation

# delete_environment method definition

def delete_environment(
    self,
    *,
    id: str,
    clientToken: str = ...,
) -> Dict[str, Any]:
    ...
# delete_environment method usage example with argument unpacking

kwargs: DeleteEnvironmentRequestRequestTypeDef = {  # (1)
    "id": ...,
}

parent.delete_environment(**kwargs)
  1. See DeleteEnvironmentRequestRequestTypeDef

deregister_device#

Deregisters a thin client device.

Type annotations and code completion for boto3.client("workspaces-thin-client").deregister_device method. boto3 documentation

# deregister_device method definition

def deregister_device(
    self,
    *,
    id: str,
    targetDeviceStatus: TargetDeviceStatusType = ...,  # (1)
    clientToken: str = ...,
) -> Dict[str, Any]:
    ...
  1. See TargetDeviceStatusType
# deregister_device method usage example with argument unpacking

kwargs: DeregisterDeviceRequestRequestTypeDef = {  # (1)
    "id": ...,
}

parent.deregister_device(**kwargs)
  1. See DeregisterDeviceRequestRequestTypeDef

generate_presigned_url#

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

Type annotations and code completion for boto3.client("workspaces-thin-client").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#

Returns information for a thin client device.

Type annotations and code completion for boto3.client("workspaces-thin-client").get_device method. boto3 documentation

# get_device method definition

def get_device(
    self,
    *,
    id: str,
) -> GetDeviceResponseTypeDef:  # (1)
    ...
  1. See GetDeviceResponseTypeDef
# get_device method usage example with argument unpacking

kwargs: GetDeviceRequestRequestTypeDef = {  # (1)
    "id": ...,
}

parent.get_device(**kwargs)
  1. See GetDeviceRequestRequestTypeDef

get_environment#

Returns information for an environment.

Type annotations and code completion for boto3.client("workspaces-thin-client").get_environment method.