interface NodeLifecycleActionsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.PCS.CfnComputeNodeGroup.NodeLifecycleActionsProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awspcs#CfnComputeNodeGroup_NodeLifecycleActionsProperty |
Java | software.amazon.awscdk.services.pcs.CfnComputeNodeGroup.NodeLifecycleActionsProperty |
Python | aws_cdk.aws_pcs.CfnComputeNodeGroup.NodeLifecycleActionsProperty |
TypeScript | aws-cdk-lib » aws_pcs » CfnComputeNodeGroup » NodeLifecycleActionsProperty |
Custom scripts that run at defined points in a compute node's lifecycle.
Example
// 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 nodeLifecycleActionsProperty: pcs.CfnComputeNodeGroup.NodeLifecycleActionsProperty = {
stages: {
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',
}],
},
// the properties below are optional
scriptCachingPolicy: 'scriptCachingPolicy',
};
Properties
| Name | Type | Description |
|---|---|---|
| stages | IResolvable | Node | The ordered scripts to run at each compute node lifecycle stage. |
| script | string | Controls whether lifecycle scripts are downloaded once at first boot (CACHE_ONCE) or re-downloaded on every reboot (REFRESH_ON_REBOOT). |
stages
Type:
IResolvable | Node
The ordered scripts to run at each compute node lifecycle stage.
scriptCachingPolicy?
Type:
string
(optional)
Controls whether lifecycle scripts are downloaded once at first boot (CACHE_ONCE) or re-downloaded on every reboot (REFRESH_ON_REBOOT).
Defaults to CACHE_ONCE.

.NET
Go
Java
Python
TypeScript