Class: AWSCDK::Pinpoint::CfnCampaign::LimitsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pinpoint::CfnCampaign::LimitsProperty
- Defined in:
- pinpoint/cfn_campaign.rb
Overview
Specifies the limits on the messages that a campaign can send.
Instance Attribute Summary collapse
-
#daily ⇒ Numeric?
readonly
The maximum number of messages that a campaign can send to a single endpoint during a 24-hour period.
-
#maximum_duration ⇒ Numeric?
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.
-
#messages_per_second ⇒ Numeric?
readonly
The maximum number of messages that a campaign can send each second.
-
#session ⇒ Numeric?
readonly
The maximum number of messages that the campaign can send per user session.
-
#total ⇒ Numeric?
readonly
The maximum number of messages that a campaign can send to a single endpoint during the course of the campaign.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(daily: nil, maximum_duration: nil, messages_per_second: nil, session: nil, total: nil) ⇒ LimitsProperty
constructor
A new instance of LimitsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(daily: nil, maximum_duration: nil, messages_per_second: nil, session: nil, total: nil) ⇒ LimitsProperty
Returns a new instance of LimitsProperty.
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 = 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
#daily ⇒ Numeric? (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_duration ⇒ Numeric? (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_second ⇒ Numeric? (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 end |
#session ⇒ Numeric? (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 |
#total ⇒ Numeric? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |