Class: AWSCDK::CustomerProfiles::CfnSegmentDefinition::AttributeDimensionProperty

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

Overview

Object that defines how to filter the incoming objects for the calculated attribute.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dimension_type:, values:) ⇒ AttributeDimensionProperty

Returns a new instance of AttributeDimensionProperty.

Parameters:

  • dimension_type (String)

    The action to segment with.

  • values (Array<String>)

    The values to apply the DimensionType on.



714
715
716
717
718
719
# File 'customer_profiles/cfn_segment_definition.rb', line 714

def initialize(dimension_type:, values:)
  @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")
end

Instance Attribute Details

#dimension_typeString (readonly)

The action to segment with.



725
726
727
# File 'customer_profiles/cfn_segment_definition.rb', line 725

def dimension_type
  @dimension_type
end

#valuesArray<String> (readonly)

The values to apply the DimensionType on.



730
731
732
# File 'customer_profiles/cfn_segment_definition.rb', line 730

def values
  @values
end

Class Method Details

.jsii_propertiesObject



732
733
734
735
736
737
# File 'customer_profiles/cfn_segment_definition.rb', line 732

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

Instance Method Details

#to_jsiiObject



739
740
741
742
743
744
745
746
# File 'customer_profiles/cfn_segment_definition.rb', line 739

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