Lists all of the flows associated with your account.
Parameters:
-
max_results
(Optional[MaxResults], default:
None
)
–
Specifies the maximum number of items that should be returned in the result set.
-
next_token
(Optional[NextToken], default:
None
)
–
The pagination token for next page of data.
Raises:
Source code in docs_src/capo_appflow/_services/appflow.py
| def list_flows(
self,
*,
config_overrides: Optional[AppflowClientConfig] = None,
max_results: Optional["capo_appflow.types.max_results.MaxResults"] = None,
next_token: Optional["capo_appflow.types.next_token.NextToken"] = None,
) -> "capo_appflow.types.list_flows_response.ListFlowsResponse":
"""<p> Lists all of the flows associated with your account. </p>
Args:
max_results: <p> Specifies the maximum number of items that should be returned in the result set. </p>
next_token: <p> The pagination token for next page of data. </p>
Raises:
capo_appflow.errors.internal_server_exception.InternalServerException: <p> An internal service error occurred during the processing of your request. Try again later. </p>
capo_appflow.errors.validation_exception.ValidationException: <p> The request has invalid or missing parameters. </p>
capo_appflow.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_appflow.types.list_flows_request.ListFlowsRequest]",
) -> OperationResponse[
"capo_appflow.types.list_flows_response.ListFlowsResponse"
]:
import capo_appflow._operations.sandstone_configuration_service_lambda.list_flows
output, http_response = (
capo_appflow._operations.sandstone_configuration_service_lambda.list_flows.list_flows(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListFlows")
)
input_: capo_appflow.types.list_flows_request.ListFlowsRequest = {}
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|