Class: AWSCDK::OpsWorks::CfnLayer::ShutdownEventConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ops_works/cfn_layer.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(delay_until_elb_connections_drained: nil, execution_timeout: nil) ⇒ ShutdownEventConfigurationProperty

Returns a new instance of ShutdownEventConfigurationProperty.

Parameters:

  • delay_until_elb_connections_drained (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Whether to enable Elastic Load Balancing connection draining.

  • execution_timeout (Numeric, nil) (defaults to: nil)

    The time, in seconds, that OpsWorks Stacks waits after triggering a Shutdown event before shutting down an instance.



986
987
988
989
990
991
# File 'ops_works/cfn_layer.rb', line 986

def initialize(delay_until_elb_connections_drained: nil, execution_timeout: nil)
  @delay_until_elb_connections_drained = delay_until_elb_connections_drained
  Jsii::Type.check_type(@delay_until_elb_connections_drained, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "delayUntilElbConnectionsDrained") unless @delay_until_elb_connections_drained.nil?
  @execution_timeout = execution_timeout
  Jsii::Type.check_type(@execution_timeout, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "executionTimeout") unless @execution_timeout.nil?
end

Instance Attribute Details

#delay_until_elb_connections_drainedBoolean, ... (readonly)

Whether to enable Elastic Load Balancing connection draining.

For more information, see Connection Draining



999
1000
1001
# File 'ops_works/cfn_layer.rb', line 999

def delay_until_elb_connections_drained
  @delay_until_elb_connections_drained
end

#execution_timeoutNumeric? (readonly)

The time, in seconds, that OpsWorks Stacks waits after triggering a Shutdown event before shutting down an instance.



1004
1005
1006
# File 'ops_works/cfn_layer.rb', line 1004

def execution_timeout
  @execution_timeout
end

Class Method Details

.jsii_propertiesObject



1006
1007
1008
1009
1010
1011
# File 'ops_works/cfn_layer.rb', line 1006

def self.jsii_properties
  {
    :delay_until_elb_connections_drained => "delayUntilElbConnectionsDrained",
    :execution_timeout => "executionTimeout",
  }
end

Instance Method Details

#to_jsiiObject



1013
1014
1015
1016
1017
1018
1019
1020
# File 'ops_works/cfn_layer.rb', line 1013

def to_jsii
  result = {}
  result.merge!({
    "delayUntilElbConnectionsDrained" => @delay_until_elb_connections_drained,
    "executionTimeout" => @execution_timeout,
  })
  result.compact
end