InitCommandWaitDuration Class
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 |
|---|
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();
python
# 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()
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
InitCommandWaitDuration initCommandWaitDuration = InitCommandWaitDuration.forever();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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();
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
initCommandWaitDuration := awscdk.Aws_ec2.InitCommandWaitDuration_Forever()
Initializer
ts
new InitCommandWaitDuration()
python
InitCommandWaitDuration()
java
new InitCommandWaitDuration()
csharp
new InitCommandWaitDuration()
go
NewInitCommandWaitDuration()
Methods
forever(): InitCommandWaitDuration // chainable@staticmethod def forever() -> InitCommandWaitDurationpublic static InitCommandWaitDuration forever()public static InitCommandWaitDuration Forever()func Forever() InitCommandWaitDuration static #cfn-init will exit and resume only after a reboot.
none(): InitCommandWaitDuration // chainable@staticmethod def none() -> InitCommandWaitDurationpublic static InitCommandWaitDuration none()public static InitCommandWaitDuration None()func None() InitCommandWaitDuration static #Do not wait for this command.
of(duration: Duration): InitCommandWaitDuration // chainable@staticmethod def of(duration: Duration) -> InitCommandWaitDurationpublic static InitCommandWaitDuration of(Duration duration)public static InitCommandWaitDuration Of(Duration duration)func Of(Duration Duration) InitCommandWaitDuration static #Wait for a specified duration after a command.