InitCommandWaitDuration Class
Represents a duration to wait after a command has finished, in case of a reboot (Windows only).
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const initCommandWaitDuration = ec2.InitCommandWaitDuration.forever();
Initializer
ts
new InitCommandWaitDuration()
python
InitCommandWaitDuration()
java
new InitCommandWaitDuration()
csharp
new InitCommandWaitDuration()
go
NewInitCommandWaitDuration()
Methods
forever(): InitCommandWaitDuration // chainable@staticmethod def forever() -> InitCommandWaitDurationpublic static InitCommandWaitDuration forever()public static InitCommandWaitDuration Forever()func Forever() InitCommandWaitDurationstatic#cfn-init will exit and resume only after a reboot.
none(): InitCommandWaitDuration // chainable@staticmethod def none() -> InitCommandWaitDurationpublic static InitCommandWaitDuration none()public static InitCommandWaitDuration None()func None() InitCommandWaitDurationstatic#Do not wait for this command.
of(duration: Duration): InitCommandWaitDuration // chainable@staticmethod def of(duration: Duration) -> InitCommandWaitDurationpublic static InitCommandWaitDuration of(Duration duration)public static InitCommandWaitDuration Of(Duration duration)func Of(Duration Duration) InitCommandWaitDurationstatic#Wait for a specified duration after a command.