Class: AWSCDK::Codepipeline::CfnPipeline::StageTransitionProperty

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

Overview

The name of the pipeline in which you want to disable the flow of artifacts from one stage to another.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reason:, stage_name:) ⇒ StageTransitionProperty

Returns a new instance of StageTransitionProperty.

Parameters:

  • reason (String)

    The reason given to the user that a stage is disabled, such as waiting for manual approval or manual tests.

  • stage_name (String)

    The name of the stage where you want to disable the inbound or outbound transition of artifacts.



2054
2055
2056
2057
2058
2059
# File 'codepipeline/cfn_pipeline.rb', line 2054

def initialize(reason:, stage_name:)
  @reason = reason
  Jsii::Type.check_type(@reason, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "reason")
  @stage_name = stage_name
  Jsii::Type.check_type(@stage_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "stageName")
end

Instance Attribute Details

#reasonString (readonly)

The reason given to the user that a stage is disabled, such as waiting for manual approval or manual tests.

This message is displayed in the pipeline console UI.



2067
2068
2069
# File 'codepipeline/cfn_pipeline.rb', line 2067

def reason
  @reason
end

#stage_nameString (readonly)

The name of the stage where you want to disable the inbound or outbound transition of artifacts.



2072
2073
2074
# File 'codepipeline/cfn_pipeline.rb', line 2072

def stage_name
  @stage_name
end

Class Method Details

.jsii_propertiesObject



2074
2075
2076
2077
2078
2079
# File 'codepipeline/cfn_pipeline.rb', line 2074

def self.jsii_properties
  {
    :reason => "reason",
    :stage_name => "stageName",
  }
end

Instance Method Details

#to_jsiiObject



2081
2082
2083
2084
2085
2086
2087
2088
# File 'codepipeline/cfn_pipeline.rb', line 2081

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