Class CfnComputeNodeGroupPropsMixin.NodeLifecycleScriptProperty
A single lifecycle script with its source, arguments, and error behavior.
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.PCS
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnComputeNodeGroupPropsMixin.NodeLifecycleScriptProperty : CfnComputeNodeGroupPropsMixin.INodeLifecycleScriptProperty
Syntax (vb)
Public Class CfnComputeNodeGroupPropsMixin.NodeLifecycleScriptProperty Implements CfnComputeNodeGroupPropsMixin.INodeLifecycleScriptProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.PCS;
var nodeLifecycleScriptProperty = new NodeLifecycleScriptProperty {
Arguments = new [] { "arguments" },
ExecutionPolicy = "executionPolicy",
Name = "name",
OnError = "onError",
ScriptSource = new ScriptSourceProperty {
Checksum = "checksum",
S3VersionId = "s3VersionId",
ScriptLocation = "scriptLocation"
}
};
Synopsis
Constructors
| NodeLifecycleScriptProperty() | A single lifecycle script with its source, arguments, and error behavior. |
Properties
| Arguments | An ordered list of arguments passed to the script. |
| ExecutionPolicy | Whether the script runs only on the node's first boot (FIRST_BOOT_ONLY) or on every boot including reboots (EVERY_BOOT). |
| Name | A human-readable name that identifies the script. |
| OnError | The behavior when the script exits with an error. |
| ScriptSource | The external location of a lifecycle script. |
Constructors
NodeLifecycleScriptProperty()
A single lifecycle script with its source, arguments, and error behavior.
public NodeLifecycleScriptProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.PCS;
var nodeLifecycleScriptProperty = new NodeLifecycleScriptProperty {
Arguments = new [] { "arguments" },
ExecutionPolicy = "executionPolicy",
Name = "name",
OnError = "onError",
ScriptSource = new ScriptSourceProperty {
Checksum = "checksum",
S3VersionId = "s3VersionId",
ScriptLocation = "scriptLocation"
}
};
Properties
Arguments
An ordered list of arguments passed to the script.
public string[]? Arguments { get; set; }
Property Value
string[]
Remarks
ExecutionPolicy
Whether the script runs only on the node's first boot (FIRST_BOOT_ONLY) or on every boot including reboots (EVERY_BOOT).
public string? ExecutionPolicy { get; set; }
Property Value
Remarks
Name
A human-readable name that identifies the script.
public string? Name { get; set; }
Property Value
Remarks
OnError
The behavior when the script exits with an error.
public string? OnError { get; set; }
Property Value
Remarks
ScriptSource
The external location of a lifecycle script.
public object? ScriptSource { get; set; }