Class: AWSCDK::Pinpoint::CfnSegment::SourceSegmentsProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, version: nil) ⇒ SourceSegmentsProperty

Returns a new instance of SourceSegmentsProperty.

Parameters:

  • id (String)

    The unique identifier for the source segment.

  • version (Numeric, nil) (defaults to: nil)

    The version number of the source segment.



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

#idString (readonly)

The unique identifier for the source segment.



1171
1172
1173
# File 'pinpoint/cfn_segment.rb', line 1171

def id
  @id
end

#versionNumeric? (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_propertiesObject



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_jsiiObject



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