NodeLifecycleScriptProperty Struct
A single lifecycle script with its source, arguments, and error behavior.
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 nodeLifecycleScriptProperty: pcs.CfnComputeNodeGroup.NodeLifecycleScriptProperty = {
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
argumentsstring[]argumentstyping.List[str]argumentsList<String>Argumentsstring[]Arguments*[]*string#An ordered list of arguments passed to the script.
executionPolicystringexecution_policystrexecutionPolicyStringExecutionPolicystringExecutionPolicy*string#Whether the script runs only on the node's first boot (FIRST_BOOT_ONLY) or on every boot including reboots (EVERY_BOOT).
Defaults to FIRST_BOOT_ONLY.
A human-readable name that identifies the script.
The behavior when the script exits with an error.
Defaults to TERMINATE.
scriptSourceIResolvable | CfnComputeNodeGroup.ScriptSourcePropertyscript_sourcetyping.Union[IResolvable, ScriptSourceProperty]scriptSourceIResolvableScriptSourceIResolvableScriptSourceinterface{}required#The external location of a lifecycle script.