

# NodeLifecycleActionsRequest
<a name="API_NodeLifecycleActionsRequest"></a>

The lifecycle actions to configure on a compute node group when you create it. Lifecycle actions define scripts that AWS PCS runs on compute nodes at specific stages of their lifecycle.

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

 ** stages **   <a name="PCS-Type-NodeLifecycleActionsRequest-stages"></a>
The lifecycle stages where you configure scripts to run.  
Type: [NodeLifecycleStages](API_NodeLifecycleStages.md) object  
Required: Yes

 ** scriptCachingPolicy **   <a name="PCS-Type-NodeLifecycleActionsRequest-scriptCachingPolicy"></a>
The caching policy for node lifecycle scripts. The default value is `CACHE_ONCE`. Valid values:  
+  `CACHE_ONCE` – Downloads each script once and reuses it on subsequent boots.
+  `REFRESH_ON_REBOOT` – Downloads each script on every boot.
Type: String  
Valid Values: `CACHE_ONCE | REFRESH_ON_REBOOT`   
Required: No

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

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/pcs-2023-02-10/NodeLifecycleActionsRequest) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/pcs-2023-02-10/NodeLifecycleActionsRequest) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/pcs-2023-02-10/NodeLifecycleActionsRequest) 