Class: AWSCDK::Pinpoint::CfnCampaign::LimitsProperty

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

Overview

Specifies the limits on the messages that a campaign can send.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(daily: nil, maximum_duration: nil, messages_per_second: nil, session: nil, total: nil) ⇒ LimitsProperty

Returns a new instance of LimitsProperty.

Parameters:

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

    The maximum number of messages that a campaign can send to a single endpoint during a 24-hour period.

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

    The maximum amount of time, in seconds, that a campaign can attempt to deliver a message after the scheduled start time for the campaign.

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

    The maximum number of messages that a campaign can send each second.

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

    The maximum number of messages that the campaign can send per user session.

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

    The maximum number of messages that a campaign can send to a single endpoint during the course of the campaign.



1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
# File 'pinpoint/cfn_campaign.rb', line 1600

def initialize(daily: nil, maximum_duration: nil, messages_per_second: nil, session: nil, total: nil)
  @daily = daily
  Jsii::Type.check_type(@daily, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "daily") unless @daily.nil?
  @maximum_duration = maximum_duration
  Jsii::Type.check_type(@maximum_duration, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maximumDuration") unless @maximum_duration.nil?
  @messages_per_second = messages_per_second
  Jsii::Type.check_type(@messages_per_second, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "messagesPerSecond") unless @messages_per_second.nil?
  @session = session
  Jsii::Type.check_type(@session, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "session") unless @session.nil?
  @total = total
  Jsii::Type.check_type(@total, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "total") unless @total.nil?
end

Instance Attribute Details

#dailyNumeric? (readonly)

The maximum number of messages that a campaign can send to a single endpoint during a 24-hour period.

The maximum value is 100.



1619
1620
1621
# File 'pinpoint/cfn_campaign.rb', line 1619

def daily
  @daily
end

#maximum_durationNumeric? (readonly)

The maximum amount of time, in seconds, that a campaign can attempt to deliver a message after the scheduled start time for the campaign.

The minimum value is 60 seconds.



1626
1627
1628
# File 'pinpoint/cfn_campaign.rb', line 1626

def maximum_duration
  @maximum_duration
end

#messages_per_secondNumeric? (readonly)

The maximum number of messages that a campaign can send each second.

The minimum value is 1. The maximum value is 20,000.



1633
1634
1635
# File 'pinpoint/cfn_campaign.rb', line 1633

def messages_per_second
  @messages_per_second
end

#sessionNumeric? (readonly)

The maximum number of messages that the campaign can send per user session.



1638
1639
1640
# File 'pinpoint/cfn_campaign.rb', line 1638

def session
  @session
end

#totalNumeric? (readonly)

The maximum number of messages that a campaign can send to a single endpoint during the course of the campaign.

The maximum value is 100.



1645
1646
1647
# File 'pinpoint/cfn_campaign.rb', line 1645

def total
  @total
end

Class Method Details

.jsii_propertiesObject



1647
1648
1649
1650
1651
1652
1653
1654
1655
# File 'pinpoint/cfn_campaign.rb', line 1647

def self.jsii_properties
  {
    :daily => "daily",
    :maximum_duration => "maximumDuration",
    :messages_per_second => "messagesPerSecond",
    :session => "session",
    :total => "total",
  }
end

Instance Method Details

#to_jsiiObject



1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
# File 'pinpoint/cfn_campaign.rb', line 1657

def to_jsii
  result = {}
  result.merge!({
    "daily" => @daily,
    "maximumDuration" => @maximum_duration,
    "messagesPerSecond" => @messages_per_second,
    "session" => @session,
    "total" => @total,
  })
  result.compact
end