Class: AWSCDK::StepFunctionsTasks::RetryPolicy
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::StepFunctionsTasks::RetryPolicy
- Defined in:
- step_functions_tasks/retry_policy.rb
Overview
The information about the retry policy settings.
Instance Attribute Summary collapse
-
#maximum_event_age ⇒ AWSCDK::Duration
readonly
The maximum amount of time 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:, maximum_retry_attempts:) ⇒ RetryPolicy
constructor
A new instance of RetryPolicy.
- #to_jsii ⇒ Object
Constructor Details
#initialize(maximum_event_age:, maximum_retry_attempts:) ⇒ RetryPolicy
Returns a new instance of RetryPolicy.
9 10 11 12 13 14 |
# File 'step_functions_tasks/retry_policy.rb', line 9 def initialize(maximum_event_age:, maximum_retry_attempts:) @maximum_event_age = maximum_event_age Jsii::Type.check_type(@maximum_event_age, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5EdXJhdGlvbiJ9")), "maximumEventAge") @maximum_retry_attempts = maximum_retry_attempts Jsii::Type.check_type(@maximum_retry_attempts, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maximumRetryAttempts") end |
Instance Attribute Details
#maximum_event_age ⇒ AWSCDK::Duration (readonly)
The maximum amount of time to continue to make retry attempts.
19 20 21 |
# File 'step_functions_tasks/retry_policy.rb', line 19 def maximum_event_age @maximum_event_age end |
#maximum_retry_attempts ⇒ Numeric (readonly)
The maximum number of retry attempts to make before the request fails.
23 24 25 |
# File 'step_functions_tasks/retry_policy.rb', line 23 def maximum_retry_attempts @maximum_retry_attempts end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'step_functions_tasks/retry_policy.rb', line 25 def self.jsii_properties { :maximum_event_age => "maximumEventAge", :maximum_retry_attempts => "maximumRetryAttempts", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'step_functions_tasks/retry_policy.rb', line 32 def to_jsii result = {} result.merge!({ "maximumEventAge" => @maximum_event_age, "maximumRetryAttempts" => @maximum_retry_attempts, }) result.compact end |