Class: AWSCDK::Codepipeline::Variable
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::Codepipeline::Variable
- Defined in:
- codepipeline/variable.rb
Overview
Pipeline-Level variable.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(props) ⇒ Variable
constructor
A new instance of Variable.
-
#reference ⇒ String
Reference the variable name at Pipeline actions.
-
#variable_name ⇒ String
The name of a pipeline-level variable.
Constructor Details
#initialize(props) ⇒ Variable
Returns a new instance of Variable.
9 10 11 12 13 |
# File 'codepipeline/variable.rb', line 9 def initialize(props) props = props.is_a?(Hash) ? ::AWSCDK::Codepipeline::VariableProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZXBpcGVsaW5lLlZhcmlhYmxlUHJvcHMifQ==")), "props") Jsii::Object.instance_method(:initialize).bind(self).call(props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
15 16 17 18 19 20 |
# File 'codepipeline/variable.rb', line 15 def self.jsii_overridable_methods { :variable_name => { kind: :property, name: "variableName", is_optional: false }, :reference => { kind: :method, name: "reference", is_optional: false }, } end |
Instance Method Details
#reference ⇒ String
Reference the variable name at Pipeline actions.
32 33 34 |
# File 'codepipeline/variable.rb', line 32 def reference() jsii_call_method("reference", []) end |
#variable_name ⇒ String
The name of a pipeline-level variable.
25 26 27 |
# File 'codepipeline/variable.rb', line 25 def variable_name() jsii_get_property("variableName") end |