Class: AWSCDK::CustomerProfiles::CfnRecommender::EventParametersProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
customer_profiles/cfn_recommender.rb

Overview

Event parameters with type and value threshold.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_type:, event_value_threshold: nil) ⇒ EventParametersProperty

Returns a new instance of EventParametersProperty.

Parameters:

  • event_type (String)

    The type of event.

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

    The threshold of the event type.



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_typeString (readonly)

The type of event.



641
642
643
# File 'customer_profiles/cfn_recommender.rb', line 641

def event_type
  @event_type
end

#event_value_thresholdNumeric? (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_propertiesObject



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_jsiiObject



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