Class: AWSCDK::CustomerProfiles::CfnSegmentDefinition::ConditionOverridesProperty

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

Overview

An object to override the original condition block of a calculated attribute.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(range: nil) ⇒ ConditionOverridesProperty

Returns a new instance of ConditionOverridesProperty.

Parameters:



809
810
811
812
# File 'customer_profiles/cfn_segment_definition.rb', line 809

def initialize(range: nil)
  @range = range.is_a?(Hash) ? ::AWSCDK::CustomerProfiles::CfnSegmentDefinition::RangeOverrideProperty.new(**range.transform_keys(&:to_sym)) : range
  Jsii::Type.check_type(@range, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jdXN0b21lcnByb2ZpbGVzLkNmblNlZ21lbnREZWZpbml0aW9uLlJhbmdlT3ZlcnJpZGVQcm9wZXJ0eSJ9XX19")), "range") unless @range.nil?
end

Instance Attribute Details

#rangeAWSCDK::IResolvable, ... (readonly)

The relative time period over which data is included in the aggregation for this override.



818
819
820
# File 'customer_profiles/cfn_segment_definition.rb', line 818

def range
  @range
end

Class Method Details

.jsii_propertiesObject



820
821
822
823
824
# File 'customer_profiles/cfn_segment_definition.rb', line 820

def self.jsii_properties
  {
    :range => "range",
  }
end

Instance Method Details

#to_jsiiObject



826
827
828
829
830
831
832
# File 'customer_profiles/cfn_segment_definition.rb', line 826

def to_jsii
  result = {}
  result.merge!({
    "range" => @range,
  })
  result.compact
end