Class: AWSCDK::StepFunctionsTasks::RetryPolicy

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
step_functions_tasks/retry_policy.rb

Overview

The information about the retry policy settings.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(maximum_event_age:, maximum_retry_attempts:) ⇒ RetryPolicy

Returns a new instance of RetryPolicy.

Parameters:

  • maximum_event_age (AWSCDK::Duration)

    The maximum amount of time to continue to make retry attempts.

  • maximum_retry_attempts (Numeric)

    The maximum number of retry attempts to make before the request fails.



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_ageAWSCDK::Duration (readonly)

The maximum amount of time to continue to make retry attempts.

Returns:



19
20
21
# File 'step_functions_tasks/retry_policy.rb', line 19

def maximum_event_age
  @maximum_event_age
end

#maximum_retry_attemptsNumeric (readonly)

The maximum number of retry attempts to make before the request fails.

Returns:

  • (Numeric)


23
24
25
# File 'step_functions_tasks/retry_policy.rb', line 23

def maximum_retry_attempts
  @maximum_retry_attempts
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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