interface NodeLifecycleScriptProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.PCS.CfnComputeNodeGroup.NodeLifecycleScriptProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awspcs#CfnComputeNodeGroup_NodeLifecycleScriptProperty |
Java | software.amazon.awscdk.services.pcs.CfnComputeNodeGroup.NodeLifecycleScriptProperty |
Python | aws_cdk.aws_pcs.CfnComputeNodeGroup.NodeLifecycleScriptProperty |
TypeScript | aws-cdk-lib » aws_pcs » CfnComputeNodeGroup » NodeLifecycleScriptProperty |
A single lifecycle script with its source, arguments, and error behavior.
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 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
| Name | Type | Description |
|---|---|---|
| name | string | A human-readable name that identifies the script. |
| script | IResolvable | Script | The external location of a lifecycle script. |
| arguments? | string[] | An ordered list of arguments passed to the script. |
| execution | string | Whether the script runs only on the node's first boot (FIRST_BOOT_ONLY) or on every boot including reboots (EVERY_BOOT). |
| on | string | The behavior when the script exits with an error. |
name
Type:
string
A human-readable name that identifies the script.
scriptSource
Type:
IResolvable | Script
The external location of a lifecycle script.
arguments?
Type:
string[]
(optional)
An ordered list of arguments passed to the script.
executionPolicy?
Type:
string
(optional)
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.
onError?
Type:
string
(optional)
The behavior when the script exits with an error.
Defaults to TERMINATE.

.NET
Go
Java
Python
TypeScript