Class: AWSCDK::EC2::InitCommandWaitDuration
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::EC2::InitCommandWaitDuration
- Defined in:
- ec2/init_command_wait_duration.rb
Overview
Represents a duration to wait after a command has finished, in case of a reboot (Windows only).
Class Method Summary collapse
-
.forever ⇒ AWSCDK::EC2::InitCommandWaitDuration
cfn-init will exit and resume only after a reboot.
- .jsii_overridable_methods ⇒ Object
-
.none ⇒ AWSCDK::EC2::InitCommandWaitDuration
Do not wait for this command.
-
.of(duration) ⇒ AWSCDK::EC2::InitCommandWaitDuration
Wait for a specified duration after a command.
Instance Method Summary collapse
-
#initialize ⇒ InitCommandWaitDuration
constructor
A new instance of InitCommandWaitDuration.
Constructor Details
#initialize ⇒ InitCommandWaitDuration
Returns a new instance of InitCommandWaitDuration.
8 9 10 |
# File 'ec2/init_command_wait_duration.rb', line 8 def initialize Jsii::Object.instance_method(:initialize).bind(self).call end |
Class Method Details
.forever ⇒ AWSCDK::EC2::InitCommandWaitDuration
cfn-init will exit and resume only after a reboot.
20 21 22 |
# File 'ec2/init_command_wait_duration.rb', line 20 def self.forever() Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_ec2.InitCommandWaitDuration", "forever", []) end |
.jsii_overridable_methods ⇒ Object
12 13 14 15 |
# File 'ec2/init_command_wait_duration.rb', line 12 def self.jsii_overridable_methods { } end |
.none ⇒ AWSCDK::EC2::InitCommandWaitDuration
Do not wait for this command.
27 28 29 |
# File 'ec2/init_command_wait_duration.rb', line 27 def self.none() Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_ec2.InitCommandWaitDuration", "none", []) end |
.of(duration) ⇒ AWSCDK::EC2::InitCommandWaitDuration
Wait for a specified duration after a command.
35 36 37 38 |
# File 'ec2/init_command_wait_duration.rb', line 35 def self.of(duration) Jsii::Type.check_type(duration, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5EdXJhdGlvbiJ9")), "duration") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_ec2.InitCommandWaitDuration", "of", [duration]) end |