# NodeLifecycleStagesProperty

The ordered scripts to run at each compute node lifecycle stage.

- Source: Generated code
- Type last changed: v2.264.0 · 10 Aug 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pcs as pcs } from 'aws-cdk-lib';
const nodeLifecycleStagesProperty: pcs.CfnComputeNodeGroup.NodeLifecycleStagesProperty = {
  nodeBootstrapped: [{
    name: 'name',
    scriptSource: {
      scriptLocation: 'scriptLocation',

      // the properties below are optional
      checksum: 'checksum',
      s3VersionId: 's3VersionId',
    },

    // the properties below are optional
    arguments: ['arguments'],
    executionPolicy: 'executionPolicy',
    onError: 'onError',
  }],
  nodeReady: [{
    name: 'name',
    scriptSource: {
      scriptLocation: 'scriptLocation',

      // the properties below are optional
      checksum: 'checksum',
      s3VersionId: 's3VersionId',
    },

    // the properties below are optional
    arguments: ['arguments'],
    executionPolicy: 'executionPolicy',
    onError: 'onError',
  }],
};
```

## Properties

- `nodeBootstrapped`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComputeNodeGroup.NodeLifecycleScriptProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_pcs.CfnComputeNodeGroup.NodeLifecycleScriptProperty.html)[] — Scripts to run after the node is bootstrapped, once the PCS configuration phase completes and before slurmd starts.

- `nodeReady`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComputeNodeGroup.NodeLifecycleScriptProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_pcs.CfnComputeNodeGroup.NodeLifecycleScriptProperty.html)[] — Scripts to execute when the node becomes ready (every boot).
