Class: AWSCDK::Events::CfnRule::BatchRetryStrategyProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
events/cfn_rule.rb

Overview

The retry strategy to use for failed jobs, if the target is an AWS Batch job.

If you specify a retry strategy here, it overrides the retry strategy defined in the job definition.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attempts: nil) ⇒ BatchRetryStrategyProperty

Returns a new instance of BatchRetryStrategyProperty.

Parameters:

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

    The number of times to attempt to retry, if the job fails.



858
859
860
861
# File 'events/cfn_rule.rb', line 858

def initialize(attempts: nil)
  @attempts = attempts
  Jsii::Type.check_type(@attempts, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "attempts") unless @attempts.nil?
end

Instance Attribute Details

#attemptsNumeric? (readonly)

The number of times to attempt to retry, if the job fails.

Valid values are 1–10.



869
870
871
# File 'events/cfn_rule.rb', line 869

def attempts
  @attempts
end

Class Method Details

.jsii_propertiesObject



871
872
873
874
875
# File 'events/cfn_rule.rb', line 871

def self.jsii_properties
  {
    :attempts => "attempts",
  }
end

Instance Method Details

#to_jsiiObject



877
878
879
880
881
882
883
# File 'events/cfn_rule.rb', line 877

def to_jsii
  result = {}
  result.merge!({
    "attempts" => @attempts,
  })
  result.compact
end