Class: AWSCDK::Pipelines::StackOutputReference

Inherits:
Jsii::Object
  • Object
show all
Defined in:
pipelines/stack_output_reference.rb

Overview

A Reference to a Stack Output.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ StackOutputReference

Returns a new instance of StackOutputReference.

Raises:

  • (NoMethodError)


8
9
10
# File 'pipelines/stack_output_reference.rb', line 8

def initialize(*args)
  raise NoMethodError, "aws-cdk-lib.pipelines.StackOutputReference does not have a visible constructor; use the provided factory methods"
end

Class Method Details

.from_cfn_output(output) ⇒ AWSCDK::Pipelines::StackOutputReference

Create a StackOutputReference that references the given CfnOutput.

Parameters:

Returns:

  • (AWSCDK::Pipelines::StackOutputReference)


24
25
26
27
# File 'pipelines/stack_output_reference.rb', line 24

def self.from_cfn_output(output)
  Jsii::Type.check_type(output, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5DZm5PdXRwdXQifQ==")), "output")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.pipelines.StackOutputReference", "fromCfnOutput", [output])
end

.jsii_overridable_methodsObject



12
13
14
15
16
17
18
# File 'pipelines/stack_output_reference.rb', line 12

def self.jsii_overridable_methods
  {
    :output_name => { kind: :property, name: "outputName", is_optional: false },
    :stack_description => { kind: :property, name: "stackDescription", is_optional: false },
    :is_produced_by => { kind: :method, name: "isProducedBy", is_optional: false },
  }
end

Instance Method Details

#is_produced_by(stack) ⇒ Boolean

Whether or not this stack output is being produced by the given Stack deployment.

Parameters:

Returns:

  • (Boolean)


47
48
49
50
# File 'pipelines/stack_output_reference.rb', line 47

def is_produced_by(stack)
  Jsii::Type.check_type(stack, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5waXBlbGluZXMuU3RhY2tEZXBsb3ltZW50In0=")), "stack")
  jsii_call_method("isProducedBy", [stack])
end

#output_nameString

Output name of the producing stack.

Returns:

  • (String)


32
33
34
# File 'pipelines/stack_output_reference.rb', line 32

def output_name()
  jsii_get_property("outputName")
end

#stack_descriptionString

A human-readable description of the producing stack.

Returns:

  • (String)


39
40
41
# File 'pipelines/stack_output_reference.rb', line 39

def stack_description()
  jsii_get_property("stackDescription")
end