aws-cdk-lib.aws_ec2.InitCommandWaitDuration

class InitCommandWaitDuration

LanguageType name
.NETAmazon.CDK.AWS.EC2.InitCommandWaitDuration
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#InitCommandWaitDuration
Javasoftware.amazon.awscdk.services.ec2.InitCommandWaitDuration
Pythonaws_cdk.aws_ec2.InitCommandWaitDuration
TypeScript (source)aws-cdk-lib » 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 { aws_ec2 as ec2 } from 'aws-cdk-lib';
const initCommandWaitDuration = ec2.InitCommandWaitDuration.forever();

Initializer

new InitCommandWaitDuration()

Methods

NameDescription
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

  • InitCommandWaitDuration

cfn-init will exit and resume only after a reboot.


static none()

public static none(): InitCommandWaitDuration

Returns

  • InitCommandWaitDuration

Do not wait for this command.


static of(duration)

public static of(duration: Duration): InitCommandWaitDuration

Parameters

  • duration Duration

Returns

  • InitCommandWaitDuration

Wait for a specified duration after a command.