Class: AWSCDK::Pinpoint::CfnSegment::RecencyProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pinpoint/cfn_segment.rb

Overview

Specifies how recently segment members were active.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(duration:, recency_type:) ⇒ RecencyProperty

Returns a new instance of RecencyProperty.

Parameters:

  • duration (String)

    The duration to use when determining which users have been active or inactive with your app.

  • recency_type (String)

    The type of recency dimension to use for the segment.



932
933
934
935
936
937
# File 'pinpoint/cfn_segment.rb', line 932

def initialize(duration:, recency_type:)
  @duration = duration
  Jsii::Type.check_type(@duration, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "duration")
  @recency_type = recency_type
  Jsii::Type.check_type(@recency_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "recencyType")
end

Instance Attribute Details

#durationString (readonly)

The duration to use when determining which users have been active or inactive with your app.

Possible values: HR_24 | DAY_7 | DAY_14 | DAY_30 .



945
946
947
# File 'pinpoint/cfn_segment.rb', line 945

def duration
  @duration
end

#recency_typeString (readonly)

The type of recency dimension to use for the segment.

Valid values are: ACTIVE and INACTIVE . If the value is ACTIVE , the segment includes users who have used your app within the specified duration are included in the segment. If the value is INACTIVE , the segment includes users who haven't used your app within the specified duration are included in the segment.



952
953
954
# File 'pinpoint/cfn_segment.rb', line 952

def recency_type
  @recency_type
end

Class Method Details

.jsii_propertiesObject



954
955
956
957
958
959
# File 'pinpoint/cfn_segment.rb', line 954

def self.jsii_properties
  {
    :duration => "duration",
    :recency_type => "recencyType",
  }
end

Instance Method Details

#to_jsiiObject



961
962
963
964
965
966
967
968
# File 'pinpoint/cfn_segment.rb', line 961

def to_jsii
  result = {}
  result.merge!({
    "duration" => @duration,
    "recencyType" => @recency_type,
  })
  result.compact
end