Class: AWSCDK::CustomerProfiles::CfnSegmentDefinition::ExtraLengthValueProfileDimensionProperty

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

Overview

Object that segments on various Customer profile's fields that are larger than normal.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dimension_type:, values:) ⇒ ExtraLengthValueProfileDimensionProperty

Returns a new instance of ExtraLengthValueProfileDimensionProperty.

Parameters:

  • dimension_type (String)

    The action to segment with.

  • values (Array<String>)

    The values to apply the DimensionType on.



929
930
931
932
933
934
# File 'customer_profiles/cfn_segment_definition.rb', line 929

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.



940
941
942
# File 'customer_profiles/cfn_segment_definition.rb', line 940

def dimension_type
  @dimension_type
end

#valuesArray<String> (readonly)

The values to apply the DimensionType on.



945
946
947
# File 'customer_profiles/cfn_segment_definition.rb', line 945

def values
  @values
end

Class Method Details

.jsii_propertiesObject



947
948
949
950
951
952
# File 'customer_profiles/cfn_segment_definition.rb', line 947

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

Instance Method Details

#to_jsiiObject



954
955
956
957
958
959
960
961
# File 'customer_profiles/cfn_segment_definition.rb', line 954

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