start_flow
¶
start_flow(
flow_name: FlowName,
*,
config_overrides: Optional[AppflowClientConfig] = None,
client_token: Optional[ClientToken] = None,
) -> StartFlowResponse
Activates an existing flow. For on-demand flows, this operation runs the flow immediately. For schedule and event-triggered flows, this operation activates the flow.
Parameters:
-
flow_name(FlowName) –The specified name of the flow. Spaces are not allowed. Use underscores (_) or hyphens (-) only.
-
client_token(Optional[ClientToken], default:None) –The
clientTokenparameter is an idempotency token. It ensures that yourStartFlowrequest completes only once. You choose the value to pass. For example, if you don't receive a response from your request, you can safely retry the request with the sameclientTokenparameter value.If you omit a
clientTokenvalue, the Amazon Web Services SDK that you are using inserts a value for you. This way, the SDK can safely retry requests multiple times after a network error. You must provide your own value for other use cases.If you specify input parameters that differ from your first request, an error occurs for flows that run on a schedule or based on an event. However, the error doesn't occur for flows that run on demand. You set the conditions that initiate your flow for the
triggerConfigparameter.If you use a different value for
clientToken, Amazon AppFlow considers it a new call toStartFlow. The token is active for 8 hours.
Raises:
-
ConflictException–There was a conflict when processing the request (for example, a flow with the given name already exists within the account. Check for conflicting resource names and try again.
-
InternalServerException–An internal service error occurred during the processing of your request. Try again later.
-
ResourceNotFoundException–The resource specified in the request (such as the source or destination connector profile) is not found.
-
ServiceQuotaExceededException–The request would cause a service quota (such as the number of flows) to be exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.