Interface CfnComputeNodeGroupPropsMixin.NodeLifecycleScriptProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnComputeNodeGroupPropsMixin.NodeLifecycleScriptProperty.Jsii$Proxy
- Enclosing class:
CfnComputeNodeGroupPropsMixin
@Stability(Stable)
public static interface CfnComputeNodeGroupPropsMixin.NodeLifecycleScriptProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.cfnpropertymixins.services.pcs.*;
NodeLifecycleScriptProperty nodeLifecycleScriptProperty = NodeLifecycleScriptProperty.builder()
.arguments(List.of("arguments"))
.executionPolicy("executionPolicy")
.name("name")
.onError("onError")
.scriptSource(ScriptSourceProperty.builder()
.checksum("checksum")
.s3VersionId("s3VersionId")
.scriptLocation("scriptLocation")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnComputeNodeGroupPropsMixin.NodeLifecycleScriptProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()An ordered list of arguments passed to the script.default StringWhether the script runs only on the node's first boot (FIRST_BOOT_ONLY) or on every boot including reboots (EVERY_BOOT).default StringgetName()A human-readable name that identifies the script.default StringThe behavior when the script exits with an error.default ObjectThe external location of a lifecycle script.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getArguments
An ordered list of arguments passed to the script.- See Also:
-
getExecutionPolicy
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.
- See Also:
-
getName
A human-readable name that identifies the script.- See Also:
-
getOnError
The behavior when the script exits with an error.Defaults to TERMINATE.
- See Also:
-
getScriptSource
The external location of a lifecycle script.Returns union: either
IResolvableorCfnComputeNodeGroupPropsMixin.ScriptSourceProperty- See Also:
-
builder
@Stability(Stable) static CfnComputeNodeGroupPropsMixin.NodeLifecycleScriptProperty.Builder builder()
-