Class: AWSCDK::Pinpoint::CfnApplicationSettings::LimitsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pinpoint::CfnApplicationSettings::LimitsProperty
- Defined in:
- pinpoint/cfn_application_settings.rb
Overview
Specifies the default sending limits for campaigns in the application.
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.
-
#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, total: nil) ⇒ LimitsProperty
constructor
A new instance of LimitsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(daily: nil, maximum_duration: nil, messages_per_second: nil, total: nil) ⇒ LimitsProperty
Returns a new instance of LimitsProperty.
612 613 614 615 616 617 618 619 620 621 |
# File 'pinpoint/cfn_application_settings.rb', line 612 def initialize(daily: nil, maximum_duration: nil, messages_per_second: 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? @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.
629 630 631 |
# File 'pinpoint/cfn_application_settings.rb', line 629 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.
636 637 638 |
# File 'pinpoint/cfn_application_settings.rb', line 636 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.
643 644 645 |
# File 'pinpoint/cfn_application_settings.rb', line 643 def @messages_per_second 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.
650 651 652 |
# File 'pinpoint/cfn_application_settings.rb', line 650 def total @total end |
Class Method Details
.jsii_properties ⇒ Object
652 653 654 655 656 657 658 659 |
# File 'pinpoint/cfn_application_settings.rb', line 652 def self.jsii_properties { :daily => "daily", :maximum_duration => "maximumDuration", :messages_per_second => "messagesPerSecond", :total => "total", } end |
Instance Method Details
#to_jsii ⇒ Object
661 662 663 664 665 666 667 668 669 670 |
# File 'pinpoint/cfn_application_settings.rb', line 661 def to_jsii result = {} result.merge!({ "daily" => @daily, "maximumDuration" => @maximum_duration, "messagesPerSecond" => @messages_per_second, "total" => @total, }) result.compact end |