Class: AWSCDK::Events::CfnRule::BatchRetryStrategyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Events::CfnRule::BatchRetryStrategyProperty
- 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
-
#attempts ⇒ Numeric?
readonly
The number of times to attempt to retry, if the job fails.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attempts: nil) ⇒ BatchRetryStrategyProperty
constructor
A new instance of BatchRetryStrategyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(attempts: nil) ⇒ BatchRetryStrategyProperty
Returns a new instance of BatchRetryStrategyProperty.
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
#attempts ⇒ Numeric? (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_properties ⇒ Object
871 872 873 874 875 |
# File 'events/cfn_rule.rb', line 871 def self.jsii_properties { :attempts => "attempts", } end |
Instance Method Details
#to_jsii ⇒ Object
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 |