interface NodeLifecycleScriptProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.PCS.CfnComputeNodeGroupPropsMixin.NodeLifecycleScriptProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awspcs#CfnComputeNodeGroupPropsMixin_NodeLifecycleScriptProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.pcs.CfnComputeNodeGroupPropsMixin.NodeLifecycleScriptProperty |
Python | aws_cdk.cfn_property_mixins.aws_pcs.CfnComputeNodeGroupPropsMixin.NodeLifecycleScriptProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_pcs » CfnComputeNodeGroupPropsMixin » 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/cfn-property-mixins';
const nodeLifecycleScriptProperty: pcs.CfnComputeNodeGroupPropsMixin.NodeLifecycleScriptProperty = {
arguments: ['arguments'],
executionPolicy: 'executionPolicy',
name: 'name',
onError: 'onError',
scriptSource: {
checksum: 'checksum',
s3VersionId: 's3VersionId',
scriptLocation: 'scriptLocation',
},
};
Properties
| Name | Type | Description |
|---|---|---|
| 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). |
| name? | string | A human-readable name that identifies the script. |
| on | string | The behavior when the script exits with an error. |
| script | 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.
name?
Type:
string
(optional)
A human-readable name that identifies the script.
onError?
Type:
string
(optional)
The behavior when the script exits with an error.
Defaults to TERMINATE.
scriptSource?
Type:
IResolvable | Script
(optional)
The external location of a lifecycle script.

.NET
Go
Java
Python
TypeScript