Interface SignalsOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SignalsOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:45.413Z")
@Stability(Stable)
public interface SignalsOptions
extends software.amazon.jsii.JsiiSerializable
Customization options for Signal handling.
Example:
Vpc vpc; InstanceType instanceType; IMachineImage machineImage; AutoScalingGroup.Builder.create(this, "ASG") .vpc(vpc) .instanceType(instanceType) .machineImage(machineImage) // ... .init(CloudFormationInit.fromElements(InitFile.fromString("/etc/my_instance", "This got written during instance startup"))) .signals(Signals.waitForAll(SignalsOptions.builder() .timeout(Duration.minutes(10)) .build())) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forSignalsOptions
static final class
An implementation forSignalsOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic SignalsOptions.Builder
builder()
default Number
The percentage of signals that need to be successful.default Duration
How long to wait for the signals to be sent.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMinSuccessPercentage
The percentage of signals that need to be successful.If this number is less than 100, a percentage of signals may be failure signals while still succeeding the creation or update in CloudFormation.
Default: 100
-
getTimeout
How long to wait for the signals to be sent.This should reflect how long it takes your instances to start up (including instance start time and instance initialization time).
Default: Duration.minutes(5)
-
builder
- Returns:
- a
SignalsOptions.Builder
ofSignalsOptions
-