Class: AWSCDK::Pinpoint::CfnSegment::SourceSegmentsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pinpoint::CfnSegment::SourceSegmentsProperty
- Defined in:
- pinpoint/cfn_segment.rb
Overview
Specifies the base segment to build the segment on.
A base segment, also called a source segment , defines the initial population of endpoints for a segment. When you add dimensions to the segment, Amazon Pinpoint filters the base segment by using the dimensions that you specify.
You can specify more than one dimensional segment or only one imported segment. If you specify an imported segment, the segment size estimate that displays on the Amazon Pinpoint console indicates the size of the imported segment without any filters applied to it.
Instance Attribute Summary collapse
-
#id ⇒ String
readonly
The unique identifier for the source segment.
-
#version ⇒ Numeric?
readonly
The version number of the source segment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, version: nil) ⇒ SourceSegmentsProperty
constructor
A new instance of SourceSegmentsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(id:, version: nil) ⇒ SourceSegmentsProperty
Returns a new instance of SourceSegmentsProperty.
1160 1161 1162 1163 1164 1165 |
# File 'pinpoint/cfn_segment.rb', line 1160 def initialize(id:, version: nil) @id = id Jsii::Type.check_type(@id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") @version = version Jsii::Type.check_type(@version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "version") unless @version.nil? end |
Instance Attribute Details
#id ⇒ String (readonly)
The unique identifier for the source segment.
1171 1172 1173 |
# File 'pinpoint/cfn_segment.rb', line 1171 def id @id end |
#version ⇒ Numeric? (readonly)
The version number of the source segment.
1176 1177 1178 |
# File 'pinpoint/cfn_segment.rb', line 1176 def version @version end |
Class Method Details
.jsii_properties ⇒ Object
1178 1179 1180 1181 1182 1183 |
# File 'pinpoint/cfn_segment.rb', line 1178 def self.jsii_properties { :id => "id", :version => "version", } end |
Instance Method Details
#to_jsii ⇒ Object
1185 1186 1187 1188 1189 1190 1191 1192 |
# File 'pinpoint/cfn_segment.rb', line 1185 def to_jsii result = {} result.merge!({ "id" => @id, "version" => @version, }) result.compact end |