Class: AWSCDK::CustomerProfiles::CfnSegmentDefinition::DateDimensionProperty

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

Overview

Object that segments on various Customer Profile's date fields.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dimension_type:, values:) ⇒ DateDimensionProperty

Returns a new instance of DateDimensionProperty.

Parameters:

  • dimension_type (String)

    The action to segment on.

  • values (Array<String>)

    The values to apply the DimensionType on.



843
844
845
846
847
848
# File 'customer_profiles/cfn_segment_definition.rb', line 843

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 on.



854
855
856
# File 'customer_profiles/cfn_segment_definition.rb', line 854

def dimension_type
  @dimension_type
end

#valuesArray<String> (readonly)

The values to apply the DimensionType on.



859
860
861
# File 'customer_profiles/cfn_segment_definition.rb', line 859

def values
  @values
end

Class Method Details

.jsii_propertiesObject



861
862
863
864
865
866
# File 'customer_profiles/cfn_segment_definition.rb', line 861

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

Instance Method Details

#to_jsiiObject



868
869
870
871
872
873
874
875
# File 'customer_profiles/cfn_segment_definition.rb', line 868

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