

# OnExitLifecycle
<a name="API_OnExitLifecycle"></a>

When exiting this state, perform these `actions` if the specified `condition` is `TRUE`.

## Contents
<a name="API_OnExitLifecycle_Contents"></a>

 ** events **   <a name="iotevents-Type-OnExitLifecycle-events"></a>
Specifies the `actions` that are performed when the state is exited and the `condition` is `TRUE`.  
Type: Array of [Event](API_Event.md) objects  
Required: No

## See Also
<a name="API_OnExitLifecycle_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/iotevents-2018-07-27/OnExitLifecycle) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/iotevents-2018-07-27/OnExitLifecycle) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/iotevents-2018-07-27/OnExitLifecycle) 