Module: AWSCDK::IResolveContext
- Defined in:
- i_resolve_context.rb
Overview
Current resolution context for tokens.
Class Method Summary collapse
Instance Method Summary collapse
-
#document_path ⇒ Array<String>
Path in the JSON document that is being constructed.
-
#preparing ⇒ Boolean
True when we are still preparing, false if we're rendering the final output.
-
#register_post_processor(post_processor) ⇒ void
Use this postprocessor after the entire token structure has been resolved.
-
#resolve(x, options = nil) ⇒ Object
Resolve an inner object.
-
#scope ⇒ Constructs::IConstruct
The scope from which resolution has been initiated.
Class Method Details
.jsii_overridable_methods ⇒ Object
49 50 51 52 53 54 55 56 57 |
# File 'i_resolve_context.rb', line 49 def self.jsii_overridable_methods { :document_path => { kind: :property, name: "documentPath", is_optional: false }, :preparing => { kind: :property, name: "preparing", is_optional: false }, :scope => { kind: :property, name: "scope", is_optional: false }, :register_post_processor => { kind: :method, name: "registerPostProcessor", is_optional: false }, :resolve => { kind: :method, name: "resolve", is_optional: false }, } end |
Instance Method Details
#document_path ⇒ Array<String>
Path in the JSON document that is being constructed.
10 11 12 |
# File 'i_resolve_context.rb', line 10 def document_path() jsii_get_property("documentPath") end |
#preparing ⇒ Boolean
True when we are still preparing, false if we're rendering the final output.
17 18 19 |
# File 'i_resolve_context.rb', line 17 def preparing() jsii_get_property("preparing") end |
#register_post_processor(post_processor) ⇒ void
This method returns an undefined value.
Use this postprocessor after the entire token structure has been resolved.
32 33 34 35 |
# File 'i_resolve_context.rb', line 32 def register_post_processor(post_processor) Jsii::Type.check_type(post_processor, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5JUG9zdFByb2Nlc3NvciJ9")), "postProcessor") jsii_call_method("registerPostProcessor", [post_processor]) end |
#resolve(x, options = nil) ⇒ Object
Resolve an inner object.
42 43 44 45 46 47 |
# File 'i_resolve_context.rb', line 42 def resolve(x, = nil) Jsii::Type.check_type(x, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "x") = .is_a?(Hash) ? ::AWSCDK::ResolveChangeContextOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5SZXNvbHZlQ2hhbmdlQ29udGV4dE9wdGlvbnMifQ==")), "options") unless .nil? jsii_call_method("resolve", [x, ]) end |
#scope ⇒ Constructs::IConstruct
The scope from which resolution has been initiated.
24 25 26 |
# File 'i_resolve_context.rb', line 24 def scope() jsii_get_property("scope") end |