

# OnExitLifecycle


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

## Contents


 ** 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


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