interface NodeLifecycleActionsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.PCS.CfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awspcs#CfnComputeNodeGroupPropsMixin_NodeLifecycleActionsProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.pcs.CfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty |
Python | aws_cdk.cfn_property_mixins.aws_pcs.CfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_pcs » CfnComputeNodeGroupPropsMixin » 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/cfn-property-mixins';
const nodeLifecycleActionsProperty: pcs.CfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty = {
scriptCachingPolicy: 'scriptCachingPolicy',
stages: {
nodeBootstrapped: [{
arguments: ['arguments'],
executionPolicy: 'executionPolicy',
name: 'name',
onError: 'onError',
scriptSource: {
checksum: 'checksum',
s3VersionId: 's3VersionId',
scriptLocation: 'scriptLocation',
},
}],
nodeReady: [{
arguments: ['arguments'],
executionPolicy: 'executionPolicy',
name: 'name',
onError: 'onError',
scriptSource: {
checksum: 'checksum',
s3VersionId: 's3VersionId',
scriptLocation: 'scriptLocation',
},
}],
},
};
Properties
| Name | Type | Description |
|---|---|---|
| script | string | Controls whether lifecycle scripts are downloaded once at first boot (CACHE_ONCE) or re-downloaded on every reboot (REFRESH_ON_REBOOT). |
| stages? | 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.
stages?
Type:
IResolvable | Node
(optional)
The ordered scripts to run at each compute node lifecycle stage.

.NET
Go
Java
Python
TypeScript