Class InitCommandWaitDuration
Represents a duration to wait after a command has finished, in case of a reboot (Windows only).
Inheritance
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class InitCommandWaitDuration : DeputyBase
Syntax (vb)
Public MustInherit Class InitCommandWaitDuration
Inherits DeputyBase
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var initCommandWaitDuration = InitCommandWaitDuration.Forever();
Synopsis
Constructors
InitCommandWaitDuration() | |
InitCommandWaitDuration(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
InitCommandWaitDuration(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Forever() | cfn-init will exit and resume only after a reboot. |
None() | Do not wait for this command. |
Of(Duration) | Wait for a specified duration after a command. |
Constructors
InitCommandWaitDuration()
protected InitCommandWaitDuration()
InitCommandWaitDuration(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected InitCommandWaitDuration(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
InitCommandWaitDuration(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected InitCommandWaitDuration(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Forever()
cfn-init will exit and resume only after a reboot.
public static InitCommandWaitDuration Forever()
Returns
None()
Do not wait for this command.
public static InitCommandWaitDuration None()
Returns
Of(Duration)
Wait for a specified duration after a command.
public static InitCommandWaitDuration Of(Duration duration)
Parameters
- duration Duration
Returns