Module: AWSCDK::IResolvable

Overview

Interface for values that can be resolvable later.

Tokens are special objects that participate in synthesis.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.jsii_overridable_methodsObject



45
46
47
48
49
50
51
52
# File 'i_resolvable.rb', line 45

def self.jsii_overridable_methods
  {
    :creation_stack => { kind: :property, name: "creationStack", is_optional: false },
    :type_hint => { kind: :property, name: "typeHint", is_optional: true },
    :resolve => { kind: :method, name: "resolve", is_optional: false },
    :to_string => { kind: :method, name: "toString", is_optional: false },
  }
end

Instance Method Details

#creation_stackArray<String>

Deprecated.

creationStack has been deprecated for low usefulness and cost to capture

The creation stack of this resolvable which will be appended to errors thrown during resolution.

This may return an array with a single informational element indicating how to get this property populated, if it was skipped for performance reasons.

Returns:

  • (Array<String>)


16
17
18
# File 'i_resolvable.rb', line 16

def creation_stack()
  jsii_get_property("creationStack")
end

#resolve(context) ⇒ Object

Produce the Token's value at resolution time.

Parameters:

Returns:

  • (Object)


31
32
33
34
# File 'i_resolvable.rb', line 31

def resolve(context)
  Jsii::Type.check_type(context, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5JUmVzb2x2ZUNvbnRleHQifQ==")), "context")
  jsii_call_method("resolve", [context])
end

#to_stringString

Return a string representation of this resolvable object.

Returns a reversible string representation.

Returns:

  • (String)


41
42
43
# File 'i_resolvable.rb', line 41

def to_string()
  jsii_call_method("toString", [])
end

#type_hintAWSCDK::ResolutionTypeHint?

The type that this token will likely resolve to.

Returns:



23
24
25
# File 'i_resolvable.rb', line 23

def type_hint()
  jsii_get_property("typeHint")
end