Class: AWSCDK::CustomerProfiles::CfnCalculatedAttributeDefinition::ConditionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CustomerProfiles::CfnCalculatedAttributeDefinition::ConditionsProperty
- Defined in:
- customer_profiles/cfn_calculated_attribute_definition.rb
Overview
The conditions including range, object count, and threshold for the calculated attribute.
Instance Attribute Summary collapse
-
#object_count ⇒ Numeric?
readonly
The number of profile objects used for the calculated attribute.
-
#range ⇒ AWSCDK::IResolvable, ...
readonly
The relative time period over which data is included in the aggregation.
-
#threshold ⇒ AWSCDK::IResolvable, ...
readonly
The threshold for the calculated attribute.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(object_count: nil, range: nil, threshold: nil) ⇒ ConditionsProperty
constructor
A new instance of ConditionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(object_count: nil, range: nil, threshold: nil) ⇒ ConditionsProperty
Returns a new instance of ConditionsProperty.
720 721 722 723 724 725 726 727 |
# File 'customer_profiles/cfn_calculated_attribute_definition.rb', line 720 def initialize(object_count: nil, range: nil, threshold: nil) @object_count = object_count Jsii::Type.check_type(@object_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "objectCount") unless @object_count.nil? @range = range.is_a?(Hash) ? ::AWSCDK::CustomerProfiles::CfnCalculatedAttributeDefinition::RangeProperty.new(**range.transform_keys(&:to_sym)) : range Jsii::Type.check_type(@range, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jdXN0b21lcnByb2ZpbGVzLkNmbkNhbGN1bGF0ZWRBdHRyaWJ1dGVEZWZpbml0aW9uLlJhbmdlUHJvcGVydHkifV19fQ==")), "range") unless @range.nil? @threshold = threshold.is_a?(Hash) ? ::AWSCDK::CustomerProfiles::CfnCalculatedAttributeDefinition::ThresholdProperty.new(**threshold.transform_keys(&:to_sym)) : threshold Jsii::Type.check_type(@threshold, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jdXN0b21lcnByb2ZpbGVzLkNmbkNhbGN1bGF0ZWRBdHRyaWJ1dGVEZWZpbml0aW9uLlRocmVzaG9sZFByb3BlcnR5In1dfX0=")), "threshold") unless @threshold.nil? end |
Instance Attribute Details
#object_count ⇒ Numeric? (readonly)
The number of profile objects used for the calculated attribute.
733 734 735 |
# File 'customer_profiles/cfn_calculated_attribute_definition.rb', line 733 def object_count @object_count end |
#range ⇒ AWSCDK::IResolvable, ... (readonly)
The relative time period over which data is included in the aggregation.
738 739 740 |
# File 'customer_profiles/cfn_calculated_attribute_definition.rb', line 738 def range @range end |
#threshold ⇒ AWSCDK::IResolvable, ... (readonly)
The threshold for the calculated attribute.
743 744 745 |
# File 'customer_profiles/cfn_calculated_attribute_definition.rb', line 743 def threshold @threshold end |
Class Method Details
.jsii_properties ⇒ Object
745 746 747 748 749 750 751 |
# File 'customer_profiles/cfn_calculated_attribute_definition.rb', line 745 def self.jsii_properties { :object_count => "objectCount", :range => "range", :threshold => "threshold", } end |
Instance Method Details
#to_jsii ⇒ Object
753 754 755 756 757 758 759 760 761 |
# File 'customer_profiles/cfn_calculated_attribute_definition.rb', line 753 def to_jsii result = {} result.merge!({ "objectCount" => @object_count, "range" => @range, "threshold" => @threshold, }) result.compact end |