Class: AWSCDK::CustomerProfiles::CfnRecommender::EventParametersProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CustomerProfiles::CfnRecommender::EventParametersProperty
- Defined in:
- customer_profiles/cfn_recommender.rb
Overview
Event parameters with type and value threshold.
Instance Attribute Summary collapse
-
#event_type ⇒ String
readonly
The type of event.
-
#event_value_threshold ⇒ Numeric?
readonly
The threshold of the event type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(event_type:, event_value_threshold: nil) ⇒ EventParametersProperty
constructor
A new instance of EventParametersProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(event_type:, event_value_threshold: nil) ⇒ EventParametersProperty
Returns a new instance of EventParametersProperty.
630 631 632 633 634 635 |
# File 'customer_profiles/cfn_recommender.rb', line 630 def initialize(event_type:, event_value_threshold: nil) @event_type = event_type Jsii::Type.check_type(@event_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "eventType") @event_value_threshold = event_value_threshold Jsii::Type.check_type(@event_value_threshold, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "eventValueThreshold") unless @event_value_threshold.nil? end |
Instance Attribute Details
#event_type ⇒ String (readonly)
The type of event.
641 642 643 |
# File 'customer_profiles/cfn_recommender.rb', line 641 def event_type @event_type end |
#event_value_threshold ⇒ Numeric? (readonly)
The threshold of the event type.
Only events with a value greater or equal to this threshold will be considered for solution creation.
648 649 650 |
# File 'customer_profiles/cfn_recommender.rb', line 648 def event_value_threshold @event_value_threshold end |
Class Method Details
.jsii_properties ⇒ Object
650 651 652 653 654 655 |
# File 'customer_profiles/cfn_recommender.rb', line 650 def self.jsii_properties { :event_type => "eventType", :event_value_threshold => "eventValueThreshold", } end |
Instance Method Details
#to_jsii ⇒ Object
657 658 659 660 661 662 663 664 |
# File 'customer_profiles/cfn_recommender.rb', line 657 def to_jsii result = {} result.merge!({ "eventType" => @event_type, "eventValueThreshold" => @event_value_threshold, }) result.compact end |