Class: AWSCDK::Autoscaling::EC2HealthCheckOptions Deprecated
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Autoscaling::EC2HealthCheckOptions
- Defined in:
- autoscaling/ec2_health_check_options.rb
Overview
Deprecated.
Use Ec2HealthChecksOptions instead
EC2 Heath check options.
Instance Attribute Summary collapse
-
#grace ⇒ AWSCDK::Duration?
readonly
Specified the time Auto Scaling waits before checking the health status of an EC2 instance that has come into service.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(grace: nil) ⇒ EC2HealthCheckOptions
constructor
A new instance of EC2HealthCheckOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(grace: nil) ⇒ EC2HealthCheckOptions
Returns a new instance of EC2HealthCheckOptions.
10 11 12 13 |
# File 'autoscaling/ec2_health_check_options.rb', line 10 def initialize(grace: nil) @grace = grace Jsii::Type.check_type(@grace, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5EdXJhdGlvbiJ9")), "grace") unless @grace.nil? end |
Instance Attribute Details
#grace ⇒ AWSCDK::Duration? (readonly)
Note:
Default: Duration.seconds(0)
Specified the time Auto Scaling waits before checking the health status of an EC2 instance that has come into service.
19 20 21 |
# File 'autoscaling/ec2_health_check_options.rb', line 19 def grace @grace end |
Class Method Details
.jsii_properties ⇒ Object
21 22 23 24 25 |
# File 'autoscaling/ec2_health_check_options.rb', line 21 def self.jsii_properties { :grace => "grace", } end |
Instance Method Details
#to_jsii ⇒ Object
27 28 29 30 31 32 33 |
# File 'autoscaling/ec2_health_check_options.rb', line 27 def to_jsii result = {} result.merge!({ "grace" => @grace, }) result.compact end |