Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

stop_execution

stop_execution(**kwargs)

Stops an execution.

This API action is not supported by EXPRESS state machines.

See also: AWS API Documentation

Request Syntax

response = client.stop_execution(
    executionArn='string',
    error='string',
    cause='string'
)
Parameters
  • executionArn (string) --

    [REQUIRED]

    The Amazon Resource Name (ARN) of the execution to stop.

  • error (string) -- The error code of the failure.
  • cause (string) -- A more detailed explanation of the cause of the failure.
Return type

dict

Returns

Response Syntax

{
    'stopDate': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • stopDate (datetime) --

      The date the execution is stopped.

Exceptions

  • SFN.Client.exceptions.ExecutionDoesNotExist
  • SFN.Client.exceptions.InvalidArn
  • SFN.Client.exceptions.ValidationException