Class: AWSCDK::Codepipeline::CfnPipeline::RetryConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
codepipeline/cfn_pipeline.rb

Overview

The retry configuration specifies automatic retry for a failed stage, along with the configured retry mode.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(retry_mode: nil) ⇒ RetryConfigurationProperty

Returns a new instance of RetryConfigurationProperty.

Parameters:

  • retry_mode (String, nil) (defaults to: nil)

    The method that you want to configure for automatic stage retry on stage failure.



1759
1760
1761
1762
# File 'codepipeline/cfn_pipeline.rb', line 1759

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

Instance Attribute Details

#retry_modeString? (readonly)

The method that you want to configure for automatic stage retry on stage failure.

You can specify to retry only failed action in the stage or all actions in the stage.



1770
1771
1772
# File 'codepipeline/cfn_pipeline.rb', line 1770

def retry_mode
  @retry_mode
end

Class Method Details

.jsii_propertiesObject



1772
1773
1774
1775
1776
# File 'codepipeline/cfn_pipeline.rb', line 1772

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

Instance Method Details

#to_jsiiObject



1778
1779
1780
1781
1782
1783
1784
# File 'codepipeline/cfn_pipeline.rb', line 1778

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