stop_execution
¶
stop_execution(
execution_arn: Arn,
*,
config_overrides: Optional[SFNClientConfig] = 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/sfn.py
2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 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 | |