Class: AWSCDK::Pinpoint::CfnSegment::SegmentGroupsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pinpoint::CfnSegment::SegmentGroupsProperty
- Defined in:
- pinpoint/cfn_segment.rb
Overview
Specifies the set of segment criteria to evaluate when handling segment groups for the segment.
Instance Attribute Summary collapse
-
#groups ⇒ AWSCDK::IResolvable, ...
readonly
Specifies the set of segment criteria to evaluate when handling segment groups for the segment.
-
#include ⇒ String?
readonly
Specifies how to handle multiple segment groups for the segment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(groups: nil, include: nil) ⇒ SegmentGroupsProperty
constructor
A new instance of SegmentGroupsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(groups: nil, include: nil) ⇒ SegmentGroupsProperty
Returns a new instance of SegmentGroupsProperty.
1064 1065 1066 1067 1068 1069 |
# File 'pinpoint/cfn_segment.rb', line 1064 def initialize(groups: nil, include: nil) @groups = groups Jsii::Type.check_type(@groups, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcGlucG9pbnQuQ2ZuU2VnbWVudC5Hcm91cHNQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "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
#groups ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies the set of segment criteria to evaluate when handling segment groups for the segment.
1075 1076 1077 |
# File 'pinpoint/cfn_segment.rb', line 1075 def groups @groups end |
#include ⇒ String? (readonly)
Specifies how to handle multiple segment groups for the segment.
For example, if the segment includes three segment groups, whether the resulting segment includes endpoints that match all, any, or none of the segment groups.
1082 1083 1084 |
# File 'pinpoint/cfn_segment.rb', line 1082 def include @include end |
Class Method Details
.jsii_properties ⇒ Object
1084 1085 1086 1087 1088 1089 |
# File 'pinpoint/cfn_segment.rb', line 1084 def self.jsii_properties { :groups => "groups", :include => "include", } end |
Instance Method Details
#to_jsii ⇒ Object
1091 1092 1093 1094 1095 1096 1097 1098 |
# File 'pinpoint/cfn_segment.rb', line 1091 def to_jsii result = {} result.merge!({ "groups" => @groups, "include" => @include, }) result.compact end |