Class: AWSCDK::Scheduler::CfnSchedule::RetryPolicyProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
scheduler/cfn_schedule.rb

Overview

A RetryPolicy object that includes information about the retry policy settings, including the maximum age of an event, and the maximum number of times EventBridge Scheduler will try to deliver the event to a target.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(maximum_event_age_in_seconds: nil, maximum_retry_attempts: nil) ⇒ RetryPolicyProperty

Returns a new instance of RetryPolicyProperty.

Parameters:

  • maximum_event_age_in_seconds (Numeric, nil) (defaults to: nil)

    The maximum amount of time, in seconds, to continue to make retry attempts.

  • maximum_retry_attempts (Numeric, nil) (defaults to: nil)

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



1242
1243
1244
1245
1246
1247
# File 'scheduler/cfn_schedule.rb', line 1242

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_secondsNumeric? (readonly)

The maximum amount of time, in seconds, to continue to make retry attempts.



1253
1254
1255
# File 'scheduler/cfn_schedule.rb', line 1253

def maximum_event_age_in_seconds
  @maximum_event_age_in_seconds
end

#maximum_retry_attemptsNumeric? (readonly)

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

Retry attempts with exponential backoff continue until either the maximum number of attempts is made or until the duration of the MaximumEventAgeInSeconds is reached.



1260
1261
1262
# File 'scheduler/cfn_schedule.rb', line 1260

def maximum_retry_attempts
  @maximum_retry_attempts
end

Class Method Details

.jsii_propertiesObject



1262
1263
1264
1265
1266
1267
# File 'scheduler/cfn_schedule.rb', line 1262

def self.jsii_properties
  {
    :maximum_event_age_in_seconds => "maximumEventAgeInSeconds",
    :maximum_retry_attempts => "maximumRetryAttempts",
  }
end

Instance Method Details

#to_jsiiObject



1269
1270
1271
1272
1273
1274
1275
1276
# File 'scheduler/cfn_schedule.rb', line 1269

def to_jsii
  result = {}
  result.merge!({
    "maximumEventAgeInSeconds" => @maximum_event_age_in_seconds,
    "maximumRetryAttempts" => @maximum_retry_attempts,
  })
  result.compact
end