class InitCommandWaitDuration
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.EC2.InitCommandWaitDuration | 
|  Java | software.amazon.awscdk.services.ec2.InitCommandWaitDuration | 
|  Python | aws_cdk.aws_ec2.InitCommandWaitDuration | 
|  TypeScript (source) | @aws-cdk/aws-ec2»InitCommandWaitDuration | 
Represents a duration to wait after a command has finished, in case of a reboot (Windows only).
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ec2 from '@aws-cdk/aws-ec2';
const initCommandWaitDuration = ec2.InitCommandWaitDuration.forever();
Initializer
new InitCommandWaitDuration()
Methods
| Name | Description | 
|---|---|
| static forever() | cfn-init will exit and resume only after a reboot. | 
| static none() | Do not wait for this command. | 
| static of(duration) | Wait for a specified duration after a command. | 
static forever()
public static forever(): InitCommandWaitDuration
Returns
cfn-init will exit and resume only after a reboot.
static none()
public static none(): InitCommandWaitDuration
Returns
Do not wait for this command.
static of(duration)
public static of(duration: Duration): InitCommandWaitDuration
Parameters
- duration Duration
Returns
Wait for a specified duration after a command.
