Class: AWSCDK::Codepipeline::Variable

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

Overview

Pipeline-Level variable.

Class Method Summary collapse

Instance Method Summary collapse

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_methodsObject



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

#referenceString

Reference the variable name at Pipeline actions.

Returns:

  • (String)

    The variable name in a format that can be referenced at Pipeline actions



32
33
34
# File 'codepipeline/variable.rb', line 32

def reference()
  jsii_call_method("reference", [])
end

#variable_nameString

The name of a pipeline-level variable.

Returns:

  • (String)


25
26
27
# File 'codepipeline/variable.rb', line 25

def variable_name()
  jsii_get_property("variableName")
end