InitCommandWaitDuration

class aws_cdk.aws_ec2.InitCommandWaitDuration

Bases: object

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

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

init_command_wait_duration = ec2.InitCommandWaitDuration.forever()

Static Methods

classmethod forever()

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

Return type:

InitCommandWaitDuration

classmethod none()

Do not wait for this command.

Return type:

InitCommandWaitDuration

classmethod of(duration)

Wait for a specified duration after a command.

Parameters:

duration (Duration) –

Return type:

InitCommandWaitDuration