Class: AWSCDK::Codepipeline::CfnPipeline::ConditionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Codepipeline::CfnPipeline::ConditionProperty
- Defined in:
- codepipeline/cfn_pipeline.rb
Overview
The condition for the stage.
A condition is made up of the rules and the result for the condition. For more information about conditions, see Stage conditions and How do stage conditions work? .. For more information about rules, see the AWS CodePipeline rule reference .
Instance Attribute Summary collapse
-
#result ⇒ String?
readonly
The action to be done when the condition is met.
-
#rules ⇒ AWSCDK::IResolvable, ...
readonly
The rules that make up the condition.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(result: nil, rules: nil) ⇒ ConditionProperty
constructor
A new instance of ConditionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(result: nil, rules: nil) ⇒ ConditionProperty
Returns a new instance of ConditionProperty.
1123 1124 1125 1126 1127 1128 |
# File 'codepipeline/cfn_pipeline.rb', line 1123 def initialize(result: nil, rules: nil) @result = result Jsii::Type.check_type(@result, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "result") unless @result.nil? @rules = rules Jsii::Type.check_type(@rules, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZXBpcGVsaW5lLkNmblBpcGVsaW5lLlJ1bGVEZWNsYXJhdGlvblByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "rules") unless @rules.nil? end |
Instance Attribute Details
#result ⇒ String? (readonly)
The action to be done when the condition is met.
For example, rolling back an execution for a failure condition.
1136 1137 1138 |
# File 'codepipeline/cfn_pipeline.rb', line 1136 def result @result end |
#rules ⇒ AWSCDK::IResolvable, ... (readonly)
The rules that make up the condition.
1141 1142 1143 |
# File 'codepipeline/cfn_pipeline.rb', line 1141 def rules @rules end |
Class Method Details
.jsii_properties ⇒ Object
1143 1144 1145 1146 1147 1148 |
# File 'codepipeline/cfn_pipeline.rb', line 1143 def self.jsii_properties { :result => "result", :rules => "rules", } end |
Instance Method Details
#to_jsii ⇒ Object
1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'codepipeline/cfn_pipeline.rb', line 1150 def to_jsii result = {} result.merge!({ "result" => @result, "rules" => @rules, }) result.compact end |