execute_query
async
¶
execute_query(
workspace_id: Id,
query_statement: QueryStatement,
*,
config_overrides: Optional[AsyncIoTTwinMakerClientConfig] = None,
max_results: Optional[QueryServiceMaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ExecuteQueryResponse
Run queries to access information from your knowledge graph of entities within individual workspaces.
The ExecuteQuery action only works with Amazon Web Services Java SDK2. ExecuteQuery will not work with any Amazon Web Services Java SDK version < 2.x.
Parameters:
-
workspace_id(Id) –The ID of the workspace.
-
query_statement(QueryStatement) –The query statement.
-
max_results(Optional[QueryServiceMaxResults], default:None) –The maximum number of results to return at one time. The default is 50.
-
next_token(Optional[NextToken], default:None) –The string that specifies the next page of results.
Raises:
-
AccessDeniedException–Access is denied.
-
InternalServerException–An unexpected error has occurred.
-
QueryTimeoutException–The query timeout exception.
-
ServiceQuotaExceededException–The service quota was exceeded.
-
ThrottlingException–The rate exceeds the limit.
-
ValidationException–Failed
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iottwinmaker/_services/async_io_t_twin_maker.py
1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 | |