airflow.providers.amazon.aws.hooks.step_function
¶
Module Contents¶
Classes¶
Interact with an AWS Step Functions State Machine. |
- class airflow.providers.amazon.aws.hooks.step_function.StepFunctionHook(*args, **kwargs)[source]¶
Bases:
airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook
Interact with an AWS Step Functions State Machine.
Provide thin wrapper around
boto3.client("stepfunctions")
.Additional arguments (such as
aws_conn_id
) may be specified and are passed down to the underlying AwsBaseHook.- start_execution(state_machine_arn, name=None, state_machine_input=None, is_redrive_execution=False)[source]¶
Start Execution of the State Machine.
See also
- Parameters
state_machine_arn (str) – AWS Step Function State Machine ARN.
is_redrive_execution (bool) – Restarts unsuccessful executions of Standard workflows that did not complete successfully in the last 14 days.
name (str | None) – The name of the execution.
state_machine_input (dict | str | None) – JSON data input to pass to the State Machine.
- Returns
Execution ARN.
- Return type