Class: AWSCDK::OpsWorks::CfnLayer::LifecycleEventConfigurationProperty

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(shutdown_event_configuration: nil) ⇒ LifecycleEventConfigurationProperty

Returns a new instance of LifecycleEventConfigurationProperty.

Parameters:



832
833
834
835
# File 'ops_works/cfn_layer.rb', line 832

def initialize(shutdown_event_configuration: nil)
  @shutdown_event_configuration = shutdown_event_configuration.is_a?(Hash) ? ::AWSCDK::OpsWorks::CfnLayer::ShutdownEventConfigurationProperty.new(**shutdown_event_configuration.transform_keys(&:to_sym)) : shutdown_event_configuration
  Jsii::Type.check_type(@shutdown_event_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19vcHN3b3Jrcy5DZm5MYXllci5TaHV0ZG93bkV2ZW50Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "shutdownEventConfiguration") unless @shutdown_event_configuration.nil?
end

Instance Attribute Details

#shutdown_event_configurationAWSCDK::IResolvable, ... (readonly)

The Shutdown event configuration.



841
842
843
# File 'ops_works/cfn_layer.rb', line 841

def shutdown_event_configuration
  @shutdown_event_configuration
end

Class Method Details

.jsii_propertiesObject



843
844
845
846
847
# File 'ops_works/cfn_layer.rb', line 843

def self.jsii_properties
  {
    :shutdown_event_configuration => "shutdownEventConfiguration",
  }
end

Instance Method Details

#to_jsiiObject



849
850
851
852
853
854
855
# File 'ops_works/cfn_layer.rb', line 849

def to_jsii
  result = {}
  result.merge!({
    "shutdownEventConfiguration" => @shutdown_event_configuration,
  })
  result.compact
end