Class: AWSCDK::CustomerProfiles::CfnSegmentDefinition::GroupProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CustomerProfiles::CfnSegmentDefinition::GroupProperty
- Defined in:
- customer_profiles/cfn_segment_definition.rb
Overview
Contains dimensions that determine what to segment on.
Instance Attribute Summary collapse
-
#dimensions ⇒ AWSCDK::IResolvable, ...
readonly
Defines the attributes to segment on.
-
#source_segments ⇒ AWSCDK::IResolvable, ...
readonly
Defines the starting source of data.
-
#source_type ⇒ String?
readonly
Defines how to interact with the source data.
-
#type ⇒ String?
readonly
Defines how to interact with the profiles found in the current filtering.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(dimensions: nil, source_segments: nil, source_type: nil, type: nil) ⇒ GroupProperty
constructor
A new instance of GroupProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(dimensions: nil, source_segments: nil, source_type: nil, type: nil) ⇒ GroupProperty
Returns a new instance of GroupProperty.
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
#dimensions ⇒ AWSCDK::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_segments ⇒ AWSCDK::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_type ⇒ String? (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 |
#type ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |