Searches for summary information about workflows.
Parameters:
-
filters
(Optional[FlowTemplateFilters], default:
None
)
–
An array of objects that limit the result set. The only valid filter is DEVICE_MODEL_ID.
-
next_token
(Optional[NextToken], default:
None
)
–
The string that specifies the next page of results. Use this when you're paginating results.
-
max_results
(Optional[MaxResults], default:
None
)
–
The maximum number of results to return in the response.
Raises:
Source code in docs_src/capo_iotthingsgraph/_services/io_t_things_graph.py
| def search_flow_templates(
self,
*,
config_overrides: Optional[IoTThingsGraphClientConfig] = None,
filters: Optional[
"capo_iotthingsgraph.types.flow_template_filters.FlowTemplateFilters"
] = None,
next_token: Optional["capo_iotthingsgraph.types.next_token.NextToken"] = None,
max_results: Optional[
"capo_iotthingsgraph.types.max_results.MaxResults"
] = None,
) -> "capo_iotthingsgraph.types.search_flow_templates_response.SearchFlowTemplatesResponse":
"""<p>Searches for summary information about workflows.</p>
Args:
filters: <p>An array of objects that limit the result set. The only valid filter is <code>DEVICE_MODEL_ID</code>.</p>
next_token: <p>The string that specifies the next page of results. Use this when you're paginating results.</p>
max_results: <p>The maximum number of results to return in the response.</p>
Raises:
capo_iotthingsgraph.errors.internal_failure_exception.InternalFailureException: <p></p>
capo_iotthingsgraph.errors.invalid_request_exception.InvalidRequestException: <p></p>
capo_iotthingsgraph.errors.throttling_exception.ThrottlingException: <p></p>
capo_iotthingsgraph.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_iotthingsgraph.types.search_flow_templates_request.SearchFlowTemplatesRequest]",
) -> OperationResponse[
"capo_iotthingsgraph.types.search_flow_templates_response.SearchFlowTemplatesResponse"
]:
import capo_iotthingsgraph._operations.iot_things_graph_front_end_service.search_flow_templates
output, http_response = (
capo_iotthingsgraph._operations.iot_things_graph_front_end_service.search_flow_templates.search_flow_templates(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("SearchFlowTemplates")
)
input_: capo_iotthingsgraph.types.search_flow_templates_request.SearchFlowTemplatesRequest = {}
if filters is not None:
input_["filters"] = filters
if next_token is not None:
input_["next_token"] = next_token
if max_results is not None:
input_["max_results"] = max_results
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|