IoTTwinMakerClient
Index > IoTTwinMaker > IoTTwinMakerClient
Auto-generated documentation for IoTTwinMaker type annotations stubs module types-aiobotocore-iottwinmaker.
IoTTwinMakerClient
Type annotations and code completion for session.client("iottwinmaker")
boto3 documentation
from aioboto3.session import Session
from types_aiobotocore_iottwinmaker.client import IoTTwinMakerClient
session = Session()
async with session.client("iottwinmaker") as client:
client: IoTTwinMakerClient
Exceptions
aioboto3
client exceptions are generated in runtime.
This class provides code completion for session.client("iottwinmaker").exceptions
structure.
async with session.client("iottwinmaker") as client:
try:
do_something(client)
except (
client.AccessDeniedException,
client.ClientError,
client.ConflictException,
client.ConnectorFailureException,
client.ConnectorTimeoutException,
client.InternalServerException,
client.ResourceNotFoundException,
client.ServiceQuotaExceededException,
client.ThrottlingException,
client.TooManyTagsException,
client.ValidationException,
) as e:
print(e)
from types_aiobotocore_iottwinmaker.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods
batch_put_property_values
Sets values for multiple time series properties.
Type annotations and code completion for session.client("iottwinmaker").batch_put_property_values
method.
boto3 documentation
await def batch_put_property_values(
self,
*,
entries: Sequence[PropertyValueEntryTypeDef], # (1)
workspaceId: str,
) -> BatchPutPropertyValuesResponseTypeDef: # (2)
...
kwargs: BatchPutPropertyValuesRequestRequestTypeDef = { # (1)
"entries": ...,
"workspaceId": ...,
}
parent.batch_put_property_values(**kwargs)
can_paginate
Check if an operation can be paginated.
Type annotations and code completion for session.client("iottwinmaker").can_paginate
method.
boto3 documentation
close
Closes underlying endpoint connections.
Type annotations and code completion for session.client("iottwinmaker").close
method.
boto3 documentation
create_component_type
Creates a component type.
Type annotations and code completion for session.client("iottwinmaker").create_component_type
method.
boto3 documentation
await def create_component_type(
self,
*,
componentTypeId: str,
workspaceId: str,
description: str = ...,
extendsFrom: Sequence[str] = ...,
functions: Mapping[str, FunctionRequestTypeDef] = ..., # (1)
isSingleton: bool = ...,
propertyDefinitions: Mapping[str, PropertyDefinitionRequestTypeDef] = ..., # (2)
tags: Mapping[str, str] = ...,
) -> CreateComponentTypeResponseTypeDef: # (3)
...
- See FunctionRequestTypeDef
- See PropertyDefinitionRequestTypeDef
- See CreateComponentTypeResponseTypeDef
kwargs: CreateComponentTypeRequestRequestTypeDef = { # (1)
"componentTypeId": ...,
"workspaceId": ...,
}
parent.create_component_type(**kwargs)
create_entity
Creates an entity.
Type annotations and code completion for session.client("iottwinmaker").create_entity
method.
boto3 documentation
await def create_entity(
self,
*,
entityName: str,
workspaceId: str,
components: Mapping[str, ComponentRequestTypeDef] = ..., # (1)
description: str = ...,
entityId: str = ...,
parentEntityId: str = ...,
tags: Mapping[str, str] = ...,
) -> CreateEntityResponseTypeDef: # (2)
...
kwargs: CreateEntityRequestRequestTypeDef = { # (1)
"entityName": ...,
"workspaceId": ...,
}
parent.create_entity(**kwargs)
create_scene
Creates a scene.
Type annotations and code completion for session.client("iottwinmaker").create_scene
method.
boto3 documentation
await def create_scene(
self,
*,
contentLocation: str,
sceneId: str,
workspaceId: str,
capabilities: Sequence[str] = ...,
description: str = ...,
tags: Mapping[str, str] = ...,
) -> CreateSceneResponseTypeDef: # (1)
...
kwargs: CreateSceneRequestRequestTypeDef = { # (1)
"contentLocation": ...,
"sceneId": ...,
"workspaceId": ...,
}
parent.create_scene(**kwargs)
create_workspace
Creates a workplace.
Type annotations and code completion for session.client("iottwinmaker").create_workspace
method.
boto3 documentation
await def create_workspace(
self,
*,
role: str,
s3Location: str,
workspaceId: str,
description: str = ...,
tags: Mapping[str, str] = ...,
) -> CreateWorkspaceResponseTypeDef: # (1)
...
kwargs: CreateWorkspaceRequestRequestTypeDef = { # (1)
"role": ...,
"s3Location": ...,
"workspaceId": ...,
}
parent.create_workspace(**kwargs)
delete_component_type
Deletes a component type.
Type annotations and code completion for session.client("iottwinmaker").delete_component_type
method.
boto3 documentation
await def delete_component_type(
self,
*,
componentTypeId: str,
workspaceId: str,
) -> DeleteComponentTypeResponseTypeDef: # (1)
...
kwargs: DeleteComponentTypeRequestRequestTypeDef = { # (1)
"componentTypeId": ...,
"workspaceId": ...,
}
parent.delete_component_type(**kwargs)
delete_entity
Deletes an entity.
Type annotations and code completion for session.client("iottwinmaker").delete_entity
method.
boto3 documentation
await def delete_entity(
self,
*,
entityId: str,
workspaceId: str,
isRecursive: bool = ...,
) -> DeleteEntityResponseTypeDef: # (1)
...
kwargs: DeleteEntityRequestRequestTypeDef = { # (1)
"entityId": ...,
"workspaceId": ...,
}
parent.delete_entity(**kwargs)
delete_scene
Deletes a scene.
Type annotations and code completion for session.client("iottwinmaker").delete_scene
method.
boto3 documentation
await def delete_scene(
self,
*,
sceneId: str,
workspaceId: str,
) -> Dict[str, Any]:
...
kwargs: DeleteSceneRequestRequestTypeDef = { # (1)
"sceneId": ...,
"workspaceId": ...,
}
parent.delete_scene(**kwargs)
delete_workspace
Deletes a workspace.
Type annotations and code completion for session.client("iottwinmaker").delete_workspace
method.
boto3 documentation
kwargs: DeleteWorkspaceRequestRequestTypeDef = { # (1)
"workspaceId": ...,
}
parent.delete_workspace(**kwargs)
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for session.client("iottwinmaker").generate_presigned_url
method.
boto3 documentation
await def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
get_component_type
Retrieves information about a component type.
Type annotations and code completion for session.client("iottwinmaker").get_component_type
method.
boto3 documentation
await def get_component_type(
self,
*,
componentTypeId: str,
workspaceId: str,
) -> GetComponentTypeResponseTypeDef: # (1)
...
kwargs: GetComponentTypeRequestRequestTypeDef = { # (1)
"componentTypeId": ...,
"workspaceId": ...,
}
parent.get_component_type(**kwargs)
get_entity
Retrieves information about an entity.
Type annotations and code completion for session.client("iottwinmaker").get_entity
method.
boto3 documentation
await def get_entity(
self,
*,
entityId: str,
workspaceId: str,
) -> GetEntityResponseTypeDef: # (1)
...
kwargs: GetEntityRequestRequestTypeDef = { # (1)
"entityId": ...,
"workspaceId": ...,
}
parent.get_entity(**kwargs)
get_property_value
Gets the property values for a component, component type, entity, or workspace.
Type annotations and code completion for session.client("iottwinmaker").get_property_value
method.
boto3 documentation
await def get_property_value(
self,
*,
selectedProperties: Sequence[str],
workspaceId: str,
componentName: str = ...,
componentTypeId: str = ...,
entityId: str = ...,
) -> GetPropertyValueResponseTypeDef: # (1)
...
kwargs: GetPropertyValueRequestRequestTypeDef = { # (1)
"selectedProperties": ...,
"workspaceId": ...,
}
parent.get_property_value(**kwargs)
get_property_value_history
Retrieves information about the history of a time series property value for a component, component type, entity, or workspace.
Type annotations and code completion for session.client("iottwinmaker").get_property_value_history
method.
boto3 documentation
await def get_property_value_history(
self,
*,
selectedProperties: Sequence[str],
workspaceId: str,
componentName: str = ...,
componentTypeId: str = ...,
endDateTime: Union[datetime, str] = ...,
endTime: str = ...,
entityId: str = ...,
interpolation: InterpolationParametersTypeDef = ..., # (1)
maxResults: int = ...,
nextToken: str = ...,
orderByTime: OrderByTimeType = ..., # (2)
propertyFilters: Sequence[PropertyFilterTypeDef] = ..., # (3)
startDateTime: Union[datetime, str] = ...,
startTime: str = ...,
) -> GetPropertyValueHistoryResponseTypeDef: # (4)
...
- See InterpolationParametersTypeDef
- See OrderByTimeType
- See PropertyFilterTypeDef
- See GetPropertyValueHistoryResponseTypeDef
kwargs: GetPropertyValueHistoryRequestRequestTypeDef = { # (1)
"selectedProperties": ...,
"workspaceId": ...,
}
parent.get_property_value_history(**kwargs)
get_scene
Retrieves information about a scene.
Type annotations and code completion for session.client("iottwinmaker").get_scene
method.
boto3 documentation
await def get_scene(
self,
*,
sceneId: str,
workspaceId: str,
) -> GetSceneResponseTypeDef: # (1)
...
kwargs: GetSceneRequestRequestTypeDef = { # (1)
"sceneId": ...,
"workspaceId": ...,
}
parent.get_scene(**kwargs)
get_workspace
Retrieves information about a workspace.
Type annotations and code completion for session.client("iottwinmaker").get_workspace
method.
boto3 documentation
await def get_workspace(
self,
*,
workspaceId: str,
) -> GetWorkspaceResponseTypeDef: # (1)
...
kwargs: GetWorkspaceRequestRequestTypeDef = { # (1)
"workspaceId": ...,
}
parent.get_workspace(**kwargs)
list_component_types
Lists all component types in a workspace.
Type annotations and code completion for session.client("iottwinmaker").list_component_types
method.
boto3 documentation
await def list_component_types(
self,
*,
workspaceId: str,
filters: Sequence[ListComponentTypesFilterTypeDef] = ..., # (1)
maxResults: int = ...,
nextToken: str = ...,
) -> ListComponentTypesResponseTypeDef: # (2)
...
kwargs: ListComponentTypesRequestRequestTypeDef = { # (1)
"workspaceId": ...,
}
parent.list_component_types(**kwargs)
list_entities
Lists all entities in a workspace.
Type annotations and code completion for session.client("iottwinmaker").list_entities
method.
boto3 documentation
await def list_entities(
self,
*,
workspaceId: str,
filters: Sequence[ListEntitiesFilterTypeDef] = ..., # (1)
maxResults: int = ...,
nextToken: str = ...,
) -> ListEntitiesResponseTypeDef: # (2)
...
kwargs: ListEntitiesRequestRequestTypeDef = { # (1)
"workspaceId": ...,
}
parent.list_entities(**kwargs)
list_scenes
Lists all scenes in a workspace.
Type annotations and code completion for session.client("iottwinmaker").list_scenes
method.
boto3 documentation
await def list_scenes(
self,
*,
workspaceId: str,
maxResults: int = ...,
nextToken: str = ...,
) -> ListScenesResponseTypeDef: # (1)
...
kwargs: ListScenesRequestRequestTypeDef = { # (1)
"workspaceId": ...,
}
parent.list_scenes(**kwargs)
list_tags_for_resource
Lists all tags associated with a resource.
Type annotations and code completion for session.client("iottwinmaker").list_tags_for_resource
method.
boto3 documentation
await def list_tags_for_resource(
self,
*,
resourceARN: str,
maxResults: int = ...,
nextToken: str = ...,
) -> ListTagsForResourceResponseTypeDef: # (1)
...
kwargs: ListTagsForResourceRequestRequestTypeDef = { # (1)
"resourceARN": ...,
}
parent.list_tags_for_resource(**kwargs)
list_workspaces
Retrieves information about workspaces in the current account.
Type annotations and code completion for session.client("iottwinmaker").list_workspaces
method.
boto3 documentation
await def list_workspaces(
self,
*,
maxResults: int = ...,
nextToken: str = ...,
) -> ListWorkspacesResponseTypeDef: # (1)
...
kwargs: ListWorkspacesRequestRequestTypeDef = { # (1)
"maxResults": ...,
}
parent.list_workspaces(**kwargs)
tag_resource
Adds tags to a resource.
Type annotations and code completion for session.client("iottwinmaker").tag_resource
method.
boto3 documentation
await def tag_resource(
self,
*,
resourceARN: str,
tags: Mapping[str, str],
) -> Dict[str, Any]:
...
kwargs: TagResourceRequestRequestTypeDef = { # (1)
"resourceARN": ...,
"tags": ...,
}
parent.tag_resource(**kwargs)
untag_resource
Removes tags from a resource.
Type annotations and code completion for session.client("iottwinmaker").untag_resource
method.
boto3 documentation
await def untag_resource(
self,
*,
resourceARN: str,
tagKeys: Sequence[str],
) -> Dict[str, Any]:
...
kwargs: UntagResourceRequestRequestTypeDef = { # (1)
"resourceARN": ...,
"tagKeys": ...,
}
parent.untag_resource(**kwargs)
update_component_type
Updates information in a component type.
Type annotations and code completion for session.client("iottwinmaker").update_component_type
method.
boto3 documentation
await def update_component_type(
self,
*,
componentTypeId: str,
workspaceId: str,
description: str = ...,
extendsFrom: Sequence[str] = ...,
functions: Mapping[str, FunctionRequestTypeDef] = ..., # (1)
isSingleton: bool = ...,
propertyDefinitions: Mapping[str, PropertyDefinitionRequestTypeDef] = ..., # (2)
) -> UpdateComponentTypeResponseTypeDef: # (3)
...
- See FunctionRequestTypeDef
- See PropertyDefinitionRequestTypeDef
- See UpdateComponentTypeResponseTypeDef
kwargs: UpdateComponentTypeRequestRequestTypeDef = { # (1)
"componentTypeId": ...,
"workspaceId": ...,
}
parent.update_component_type(**kwargs)
update_entity
Updates an entity.
Type annotations and code completion for session.client("iottwinmaker").update_entity
method.
boto3 documentation
await def update_entity(
self,
*,
entityId: str,
workspaceId: str,
componentUpdates: Mapping[str, ComponentUpdateRequestTypeDef] = ..., # (1)
description: str = ...,
entityName: str = ...,
parentEntityUpdate: ParentEntityUpdateRequestTypeDef = ..., # (2)
) -> UpdateEntityResponseTypeDef: # (3)
...
- See ComponentUpdateRequestTypeDef
- See ParentEntityUpdateRequestTypeDef
- See UpdateEntityResponseTypeDef
kwargs: UpdateEntityRequestRequestTypeDef = { # (1)
"entityId": ...,
"workspaceId": ...,
}
parent.update_entity(**kwargs)
update_scene
Updates a scene.
Type annotations and code completion for session.client("iottwinmaker").update_scene
method.
boto3 documentation
await def update_scene(
self,
*,
sceneId: str,
workspaceId: str,
capabilities: Sequence[str] = ...,
contentLocation: str = ...,
description: str = ...,
) -> UpdateSceneResponseTypeDef: # (1)
...
kwargs: UpdateSceneRequestRequestTypeDef = { # (1)
"sceneId": ...,
"workspaceId": ...,
}
parent.update_scene(**kwargs)
update_workspace
Updates a workspace.
Type annotations and code completion for session.client("iottwinmaker").update_workspace
method.
boto3 documentation
await def update_workspace(
self,
*,
workspaceId: str,
description: str = ...,
role: str = ...,
) -> UpdateWorkspaceResponseTypeDef: # (1)
...
kwargs: UpdateWorkspaceRequestRequestTypeDef = { # (1)
"workspaceId": ...,
}
parent.update_workspace(**kwargs)
__aenter__
Type annotations and code completion for session.client("iottwinmaker").__aenter__
method.
boto3 documentation
__aexit__
Type annotations and code completion for session.client("iottwinmaker").__aexit__
method.
boto3 documentation