Class: AWSCDK::CustomerProfiles::CfnSegmentDefinition::GroupProperty

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

Overview

Contains dimensions that determine what to segment on.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dimensions: nil, source_segments: nil, source_type: nil, type: nil) ⇒ GroupProperty

Returns a new instance of GroupProperty.

Parameters:



974
975
976
977
978
979
980
981
982
983
# File 'customer_profiles/cfn_segment_definition.rb', line 974

def initialize(dimensions: nil, source_segments: nil, source_type: nil, type: nil)
  @dimensions = dimensions
  Jsii::Type.check_type(@dimensions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY3VzdG9tZXJwcm9maWxlcy5DZm5TZWdtZW50RGVmaW5pdGlvbi5EaW1lbnNpb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "dimensions") unless @dimensions.nil?
  @source_segments = source_segments
  Jsii::Type.check_type(@source_segments, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY3VzdG9tZXJwcm9maWxlcy5DZm5TZWdtZW50RGVmaW5pdGlvbi5Tb3VyY2VTZWdtZW50UHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "sourceSegments") unless @source_segments.nil?
  @source_type = source_type
  Jsii::Type.check_type(@source_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceType") unless @source_type.nil?
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil?
end

Instance Attribute Details

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

Defines the attributes to segment on.



989
990
991
# File 'customer_profiles/cfn_segment_definition.rb', line 989

def dimensions
  @dimensions
end

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

Defines the starting source of data.



994
995
996
# File 'customer_profiles/cfn_segment_definition.rb', line 994

def source_segments
  @source_segments
end

#source_typeString? (readonly)

Defines how to interact with the source data.



999
1000
1001
# File 'customer_profiles/cfn_segment_definition.rb', line 999

def source_type
  @source_type
end

#typeString? (readonly)

Defines how to interact with the profiles found in the current filtering.



1004
1005
1006
# File 'customer_profiles/cfn_segment_definition.rb', line 1004

def type
  @type
end

Class Method Details

.jsii_propertiesObject



1006
1007
1008
1009
1010
1011
1012
1013
# File 'customer_profiles/cfn_segment_definition.rb', line 1006

def self.jsii_properties
  {
    :dimensions => "dimensions",
    :source_segments => "sourceSegments",
    :source_type => "sourceType",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
# File 'customer_profiles/cfn_segment_definition.rb', line 1015

def to_jsii
  result = {}
  result.merge!({
    "dimensions" => @dimensions,
    "sourceSegments" => @source_segments,
    "sourceType" => @source_type,
    "type" => @type,
  })
  result.compact
end