Class: AWSCDK::OpsWorks::CfnLayer::LifecycleEventConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::OpsWorks::CfnLayer::LifecycleEventConfigurationProperty
- Defined in:
- ops_works/cfn_layer.rb
Overview
Instance Attribute Summary collapse
-
#shutdown_event_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The Shutdown event configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(shutdown_event_configuration: nil) ⇒ LifecycleEventConfigurationProperty
constructor
A new instance of LifecycleEventConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(shutdown_event_configuration: nil) ⇒ LifecycleEventConfigurationProperty
Returns a new instance of LifecycleEventConfigurationProperty.
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_configuration ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |