Class: AWSCDK::Pinpoint::CfnSegment::RecencyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pinpoint::CfnSegment::RecencyProperty
- Defined in:
- pinpoint/cfn_segment.rb
Overview
Specifies how recently segment members were active.
Instance Attribute Summary collapse
-
#duration ⇒ String
readonly
The duration to use when determining which users have been active or inactive with your app.
-
#recency_type ⇒ String
readonly
The type of recency dimension to use for the segment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(duration:, recency_type:) ⇒ RecencyProperty
constructor
A new instance of RecencyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(duration:, recency_type:) ⇒ RecencyProperty
Returns a new instance of RecencyProperty.
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
#duration ⇒ String (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_type ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |