Class: AWSCDK::Pinpoint::CfnSegment::BehaviorProperty

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

Overview

Specifies behavior-based criteria for the segment, such as how recently users have used your app.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(recency: nil) ⇒ BehaviorProperty

Returns a new instance of BehaviorProperty.

Parameters:



615
616
617
618
# File 'pinpoint/cfn_segment.rb', line 615

def initialize(recency: nil)
  @recency = recency.is_a?(Hash) ? ::AWSCDK::Pinpoint::CfnSegment::RecencyProperty.new(**recency.transform_keys(&:to_sym)) : recency
  Jsii::Type.check_type(@recency, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19waW5wb2ludC5DZm5TZWdtZW50LlJlY2VuY3lQcm9wZXJ0eSJ9XX19")), "recency") unless @recency.nil?
end

Instance Attribute Details

#recencyAWSCDK::IResolvable, ... (readonly)

Specifies how recently segment members were active.



624
625
626
# File 'pinpoint/cfn_segment.rb', line 624

def recency
  @recency
end

Class Method Details

.jsii_propertiesObject



626
627
628
629
630
# File 'pinpoint/cfn_segment.rb', line 626

def self.jsii_properties
  {
    :recency => "recency",
  }
end

Instance Method Details

#to_jsiiObject



632
633
634
635
636
637
638
# File 'pinpoint/cfn_segment.rb', line 632

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