NodeLifecycleActionsProperty Struct
Custom scripts that run at defined points in a compute node's lifecycle.
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 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
scriptCachingPolicyoptionalstringscript_caching_policyoptionalstrscriptCachingPolicyoptionalStringScriptCachingPolicyoptionalstringScriptCachingPolicyoptional*string#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.
stagesIResolvable | CfnComputeNodeGroup.NodeLifecycleStagesPropertystagestyping.Union[IResolvable, NodeLifecycleStagesProperty]stagesIResolvableStagesIResolvableStagesinterface{}required#The ordered scripts to run at each compute node lifecycle stage.