Class: AWSCDK::CustomerProfiles::CfnSegmentDefinition::ProfileTypeDimensionProperty

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

Overview

Specifies profile type based criteria for a segment.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dimension_type:, values:) ⇒ ProfileTypeDimensionProperty

Returns a new instance of ProfileTypeDimensionProperty.

Parameters:

  • dimension_type (String)

    The action to segment on.

  • values (Array<String>)

    The values to apply the DimensionType on.



1319
1320
1321
1322
1323
1324
# File 'customer_profiles/cfn_segment_definition.rb', line 1319

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.



1330
1331
1332
# File 'customer_profiles/cfn_segment_definition.rb', line 1330

def dimension_type
  @dimension_type
end

#valuesArray<String> (readonly)

The values to apply the DimensionType on.



1335
1336
1337
# File 'customer_profiles/cfn_segment_definition.rb', line 1335

def values
  @values
end

Class Method Details

.jsii_propertiesObject



1337
1338
1339
1340
1341
1342
# File 'customer_profiles/cfn_segment_definition.rb', line 1337

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

Instance Method Details

#to_jsiiObject



1344
1345
1346
1347
1348
1349
1350
1351
# File 'customer_profiles/cfn_segment_definition.rb', line 1344

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