Interface CfnComputeNodeGroup.NodeLifecycleScriptProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnComputeNodeGroup.NodeLifecycleScriptProperty.Jsii$Proxy
- Enclosing class:
CfnComputeNodeGroup
@Stability(Stable)
public static interface CfnComputeNodeGroup.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.services.pcs.*;
NodeLifecycleScriptProperty nodeLifecycleScriptProperty = NodeLifecycleScriptProperty.builder()
.name("name")
.scriptSource(ScriptSourceProperty.builder()
.scriptLocation("scriptLocation")
// the properties below are optional
.checksum("checksum")
.s3VersionId("s3VersionId")
.build())
// the properties below are optional
.arguments(List.of("arguments"))
.executionPolicy("executionPolicy")
.onError("onError")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnComputeNodeGroup.NodeLifecycleScriptPropertystatic final classAn implementation forCfnComputeNodeGroup.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).getName()A human-readable name that identifies the script.default StringThe behavior when the script exits with an error.The external location of a lifecycle script.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
A human-readable name that identifies the script.- See Also:
-
getScriptSource
The external location of a lifecycle script.Returns union: either
IResolvableorCfnComputeNodeGroup.ScriptSourceProperty- See Also:
-
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:
-
getOnError
The behavior when the script exits with an error.Defaults to TERMINATE.
- See Also:
-
builder
-