Class: AWSCDK::Events::CfnRule::RetryPolicyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Events::CfnRule::RetryPolicyProperty
- Defined in:
- events/cfn_rule.rb
Overview
A RetryPolicy object that includes information about the retry policy settings.
Instance Attribute Summary collapse
-
#maximum_event_age_in_seconds ⇒ Numeric?
readonly
The maximum amount of time, in seconds, to continue to make retry attempts.
-
#maximum_retry_attempts ⇒ Numeric?
readonly
The maximum number of retry attempts to make before the request fails.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(maximum_event_age_in_seconds: nil, maximum_retry_attempts: nil) ⇒ RetryPolicyProperty
constructor
A new instance of RetryPolicyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(maximum_event_age_in_seconds: nil, maximum_retry_attempts: nil) ⇒ RetryPolicyProperty
Returns a new instance of RetryPolicyProperty.
1598 1599 1600 1601 1602 1603 |
# File 'events/cfn_rule.rb', line 1598 def initialize(maximum_event_age_in_seconds: nil, maximum_retry_attempts: nil) @maximum_event_age_in_seconds = maximum_event_age_in_seconds Jsii::Type.check_type(@maximum_event_age_in_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maximumEventAgeInSeconds") unless @maximum_event_age_in_seconds.nil? @maximum_retry_attempts = maximum_retry_attempts Jsii::Type.check_type(@maximum_retry_attempts, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maximumRetryAttempts") unless @maximum_retry_attempts.nil? end |
Instance Attribute Details
#maximum_event_age_in_seconds ⇒ Numeric? (readonly)
The maximum amount of time, in seconds, to continue to make retry attempts.
1609 1610 1611 |
# File 'events/cfn_rule.rb', line 1609 def maximum_event_age_in_seconds @maximum_event_age_in_seconds end |
#maximum_retry_attempts ⇒ Numeric? (readonly)
The maximum number of retry attempts to make before the request fails.
Retry attempts continue until either the maximum number of attempts is made or until the duration of the MaximumEventAgeInSeconds is met.
1616 1617 1618 |
# File 'events/cfn_rule.rb', line 1616 def maximum_retry_attempts @maximum_retry_attempts end |
Class Method Details
.jsii_properties ⇒ Object
1618 1619 1620 1621 1622 1623 |
# File 'events/cfn_rule.rb', line 1618 def self.jsii_properties { :maximum_event_age_in_seconds => "maximumEventAgeInSeconds", :maximum_retry_attempts => "maximumRetryAttempts", } end |
Instance Method Details
#to_jsii ⇒ Object
1625 1626 1627 1628 1629 1630 1631 1632 |
# File 'events/cfn_rule.rb', line 1625 def to_jsii result = {} result.merge!({ "maximumEventAgeInSeconds" => @maximum_event_age_in_seconds, "maximumRetryAttempts" => @maximum_retry_attempts, }) result.compact end |