Class SignalsOptions
Customization options for Signal handling.
Inheritance
System.Object
SignalsOptions
Implements
Namespace: Amazon.CDK.AWS.AutoScaling
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SignalsOptions : Object, ISignalsOptions
Syntax (vb)
Public Class SignalsOptions
Inherits Object
Implements ISignalsOptions
Remarks
ExampleMetadata: infused
Examples
Vpc vpc;
InstanceType instanceType;
IMachineImage machineImage;
new AutoScalingGroup(this, "ASG", new AutoScalingGroupProps {
Vpc = vpc,
InstanceType = instanceType,
MachineImage = machineImage,
// ...
Init = CloudFormationInit.FromElements(InitFile.FromString("/etc/my_instance", "This got written during instance startup")),
Signals = Signals.WaitForAll(new SignalsOptions {
Timeout = Duration.Minutes(10)
})
});
Synopsis
Constructors
SignalsOptions() |
Properties
MinSuccessPercentage | The percentage of signals that need to be successful. |
Timeout | How long to wait for the signals to be sent. |
Constructors
SignalsOptions()
public SignalsOptions()
Properties
MinSuccessPercentage
The percentage of signals that need to be successful.
public Nullable<double> MinSuccessPercentage { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
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
Timeout
How long to wait for the signals to be sent.
public Duration Timeout { get; set; }
Property Value
Remarks
This should reflect how long it takes your instances to start up (including instance start time and instance initialization time).
Default: Duration.minutes(5)