stop_execution
async
¶
stop_execution(
execution_arn: Arn,
*,
config_overrides: Optional[AsyncSFNClientConfig] = None,
error: Optional[SensitiveError] = None,
cause: Optional[SensitiveCause] = None,
) -> StopExecutionOutput
Stops an execution.
This API action is not supported by EXPRESS state machines.
For an execution with encryption enabled, Step Functions will encrypt the error and cause fields using the KMS key for the execution role.
A caller can stop an execution without using any KMS permissions in the execution role if the caller provides a null value for both error and cause fields because no data needs to be encrypted.
Parameters:
-
execution_arn(Arn) –The Amazon Resource Name (ARN) of the execution to stop.
-
error(Optional[SensitiveError], default:None) –The error code of the failure.
-
cause(Optional[SensitiveCause], default:None) –A more detailed explanation of the cause of the failure.
Raises:
-
ExecutionDoesNotExist–The specified execution does not exist.
-
InvalidArn–The provided Amazon Resource Name (ARN) is not valid.
-
KmsAccessDeniedException–Either your KMS key policy or API caller does not have the required permissions.
-
KmsInvalidStateException–The KMS key is not in valid state, for example: Disabled or Deleted.
-
KmsThrottlingException–Received when KMS returns
ThrottlingExceptionfor a KMS call that Step Functions makes on behalf of the caller. -
ValidationException–The input does not satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sfn/_services/async_sfn.py
2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 | |