Class: AWSCDK::CustomerProfiles::CfnSegmentDefinition::SegmentGroupProperty

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

Overview

Contains all groups of the segment definition.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(groups: nil, include: nil) ⇒ SegmentGroupProperty

Returns a new instance of SegmentGroupProperty.

Parameters:



1415
1416
1417
1418
1419
1420
# File 'customer_profiles/cfn_segment_definition.rb', line 1415

def initialize(groups: nil, include: nil)
  @groups = groups
  Jsii::Type.check_type(@groups, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY3VzdG9tZXJwcm9maWxlcy5DZm5TZWdtZW50RGVmaW5pdGlvbi5Hcm91cFByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "groups") unless @groups.nil?
  @include = include
  Jsii::Type.check_type(@include, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "include") unless @include.nil?
end

Instance Attribute Details

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

Holds the list of groups within the segment definition.



1426
1427
1428
# File 'customer_profiles/cfn_segment_definition.rb', line 1426

def groups
  @groups
end

#includeString? (readonly)

Defines whether to include or exclude the profiles that fit the segment criteria.



1431
1432
1433
# File 'customer_profiles/cfn_segment_definition.rb', line 1431

def include
  @include
end

Class Method Details

.jsii_propertiesObject



1433
1434
1435
1436
1437
1438
# File 'customer_profiles/cfn_segment_definition.rb', line 1433

def self.jsii_properties
  {
    :groups => "groups",
    :include => "include",
  }
end

Instance Method Details

#to_jsiiObject



1440
1441
1442
1443
1444
1445
1446
1447
# File 'customer_profiles/cfn_segment_definition.rb', line 1440

def to_jsii
  result = {}
  result.merge!({
    "groups" => @groups,
    "include" => @include,
  })
  result.compact
end