Class: AWSCDK::Codepipeline::Rule
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::Codepipeline::Rule
- Defined in:
- codepipeline/rule.rb
Overview
Represents a rule in AWS CodePipeline that can be used to add conditions and controls to pipeline execution.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(props) ⇒ Rule
constructor
Creates a new Rule instance.
-
#reference ⇒ String
Returns a reference to the rule that can be used in pipeline stage conditions.
-
#rule_name ⇒ String?
The name of the rule, if specified in the properties.
Constructor Details
#initialize(props) ⇒ Rule
Creates a new Rule instance.
11 12 13 14 15 |
# File 'codepipeline/rule.rb', line 11 def initialize(props) props = props.is_a?(Hash) ? ::AWSCDK::Codepipeline::RuleProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZXBpcGVsaW5lLlJ1bGVQcm9wcyJ9")), "props") Jsii::Object.instance_method(:initialize).bind(self).call(props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
17 18 19 20 21 22 |
# File 'codepipeline/rule.rb', line 17 def self.jsii_overridable_methods { :rule_name => { kind: :property, name: "ruleName", is_optional: true }, :reference => { kind: :method, name: "reference", is_optional: false }, } end |
Instance Method Details
#reference ⇒ String
Returns a reference to the rule that can be used in pipeline stage conditions.
34 35 36 |
# File 'codepipeline/rule.rb', line 34 def reference() jsii_call_method("reference", []) end |
#rule_name ⇒ String?
The name of the rule, if specified in the properties.
27 28 29 |
# File 'codepipeline/rule.rb', line 27 def rule_name() jsii_get_property("ruleName") end |