Class: AWSCDK::Autoscaling::EC2HealthCheckOptions Deprecated

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
autoscaling/ec2_health_check_options.rb

Overview

Deprecated.

Use Ec2HealthChecksOptions instead

EC2 Heath check options.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(grace: nil) ⇒ EC2HealthCheckOptions

Returns a new instance of EC2HealthCheckOptions.

Parameters:

  • grace (AWSCDK::Duration, nil) (defaults to: nil)

    Specified the time Auto Scaling waits before checking the health status of an EC2 instance that has come into service.



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

#graceAWSCDK::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.

Returns:



19
20
21
# File 'autoscaling/ec2_health_check_options.rb', line 19

def grace
  @grace
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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