# InitCommandWaitDuration

Represents a duration to wait after a command has finished, in case of a reboot (Windows only).

- Source: [`aws-ec2/lib/cfn-init-elements.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-ec2/lib/cfn-init-elements.ts#L175)

## 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()
```

## Methods

- `forever(): InitCommandWaitDuration // chainable` (static) — cfn-init will exit and resume only after a reboot.

- `none(): InitCommandWaitDuration // chainable` (static) — Do not wait for this command.

- `of(duration: Duration): InitCommandWaitDuration // chainable` (static) — Wait for a specified duration after a command.
