Class: AWSCDK::DLM::CfnLifecyclePolicy::EventSourceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DLM::CfnLifecyclePolicy::EventSourceProperty
- Defined in:
- dlm/cfn_lifecycle_policy.rb
Overview
[Event-based policies only] Specifies an event that activates an event-based policy.
Instance Attribute Summary collapse
-
#parameters ⇒ AWSCDK::IResolvable, ...
readonly
Information about the event.
-
#type ⇒ String
readonly
The source of the event.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, parameters: nil) ⇒ EventSourceProperty
constructor
A new instance of EventSourceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, parameters: nil) ⇒ EventSourceProperty
Returns a new instance of EventSourceProperty.
1346 1347 1348 1349 1350 1351 |
# File 'dlm/cfn_lifecycle_policy.rb', line 1346 def initialize(type:, parameters: nil) @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") @parameters = parameters.is_a?(Hash) ? ::AWSCDK::DLM::CfnLifecyclePolicy::EventParametersProperty.new(**parameters.transform_keys(&:to_sym)) : parameters Jsii::Type.check_type(@parameters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kbG0uQ2ZuTGlmZWN5Y2xlUG9saWN5LkV2ZW50UGFyYW1ldGVyc1Byb3BlcnR5In1dfX0=")), "parameters") unless @parameters.nil? end |
Instance Attribute Details
#parameters ⇒ AWSCDK::IResolvable, ... (readonly)
Information about the event.
1364 1365 1366 |
# File 'dlm/cfn_lifecycle_policy.rb', line 1364 def parameters @parameters end |
#type ⇒ String (readonly)
The source of the event.
Currently only managed Amazon EventBridge (formerly known as Amazon CloudWatch) events are supported.
1359 1360 1361 |
# File 'dlm/cfn_lifecycle_policy.rb', line 1359 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
1366 1367 1368 1369 1370 1371 |
# File 'dlm/cfn_lifecycle_policy.rb', line 1366 def self.jsii_properties { :type => "type", :parameters => "parameters", } end |
Instance Method Details
#to_jsii ⇒ Object
1373 1374 1375 1376 1377 1378 1379 1380 |
# File 'dlm/cfn_lifecycle_policy.rb', line 1373 def to_jsii result = {} result.merge!({ "type" => @type, "parameters" => @parameters, }) result.compact end |