Class: AWSCDK::CustomerProfiles::CfnSegmentDefinition::CalculatedAttributeDimensionProperty

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

Overview

Object that segments on Customer Profile's Calculated Attributes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dimension_type:, values:, condition_overrides: nil) ⇒ CalculatedAttributeDimensionProperty

Returns a new instance of CalculatedAttributeDimensionProperty.

Parameters:



758
759
760
761
762
763
764
765
# File 'customer_profiles/cfn_segment_definition.rb', line 758

def initialize(dimension_type:, values:, condition_overrides: nil)
  @dimension_type = dimension_type
  Jsii::Type.check_type(@dimension_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dimensionType")
  @values = values
  Jsii::Type.check_type(@values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "values")
  @condition_overrides = condition_overrides.is_a?(Hash) ? ::AWSCDK::CustomerProfiles::CfnSegmentDefinition::ConditionOverridesProperty.new(**condition_overrides.transform_keys(&:to_sym)) : condition_overrides
  Jsii::Type.check_type(@condition_overrides, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jdXN0b21lcnByb2ZpbGVzLkNmblNlZ21lbnREZWZpbml0aW9uLkNvbmRpdGlvbk92ZXJyaWRlc1Byb3BlcnR5In1dfX0=")), "conditionOverrides") unless @condition_overrides.nil?
end

Instance Attribute Details

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

Applies the given condition over the initial Calculated Attribute's definition.



781
782
783
# File 'customer_profiles/cfn_segment_definition.rb', line 781

def condition_overrides
  @condition_overrides
end

#dimension_typeString (readonly)

The action to segment with.



771
772
773
# File 'customer_profiles/cfn_segment_definition.rb', line 771

def dimension_type
  @dimension_type
end

#valuesArray<String> (readonly)

The values to apply the DimensionType with.



776
777
778
# File 'customer_profiles/cfn_segment_definition.rb', line 776

def values
  @values
end

Class Method Details

.jsii_propertiesObject



783
784
785
786
787
788
789
# File 'customer_profiles/cfn_segment_definition.rb', line 783

def self.jsii_properties
  {
    :dimension_type => "dimensionType",
    :values => "values",
    :condition_overrides => "conditionOverrides",
  }
end

Instance Method Details

#to_jsiiObject



791
792
793
794
795
796
797
798
799
# File 'customer_profiles/cfn_segment_definition.rb', line 791

def to_jsii
  result = {}
  result.merge!({
    "dimensionType" => @dimension_type,
    "values" => @values,
    "conditionOverrides" => @condition_overrides,
  })
  result.compact
end