Module: AWSCDK::IResolvable
- Included in:
- CfnCondition, CfnJson, CustomResources::PhysicalResourceIdReference, Events::EventField, Events::Match, AWSCDK::IAM::PolicyDocument, ICfnConditionExpression, Intrinsic, JsonNull
- Defined in:
- i_resolvable.rb
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
-
#creation_stack ⇒ Array<String>
deprecated
Deprecated.
creationStack has been deprecated for low usefulness and cost to capture
-
#resolve(context) ⇒ Object
Produce the Token's value at resolution time.
-
#to_string ⇒ String
Return a string representation of this resolvable object.
-
#type_hint ⇒ AWSCDK::ResolutionTypeHint?
The type that this token will likely resolve to.
Class Method Details
.jsii_overridable_methods ⇒ Object
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_stack ⇒ Array<String>
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.
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.
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_string ⇒ String
Return a string representation of this resolvable object.
Returns a reversible string representation.
41 42 43 |
# File 'i_resolvable.rb', line 41 def to_string() jsii_call_method("toString", []) end |
#type_hint ⇒ AWSCDK::ResolutionTypeHint?
The type that this token will likely resolve to.
23 24 25 |
# File 'i_resolvable.rb', line 23 def type_hint() jsii_get_property("typeHint") end |