Module: AWSCDK::IResolveContext

Defined in:
i_resolve_context.rb

Overview

Current resolution context for tokens.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.jsii_overridable_methodsObject



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_pathArray<String>

Path in the JSON document that is being constructed.

Returns:

  • (Array<String>)


10
11
12
# File 'i_resolve_context.rb', line 10

def document_path()
  jsii_get_property("documentPath")
end

#preparingBoolean

True when we are still preparing, false if we're rendering the final output.

Returns:

  • (Boolean)


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.

Parameters:



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.

Parameters:

Returns:

  • (Object)


42
43
44
45
46
47
# File 'i_resolve_context.rb', line 42

def resolve(x, options = nil)
  Jsii::Type.check_type(x, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "x")
  options = options.is_a?(Hash) ? ::AWSCDK::ResolveChangeContextOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5SZXNvbHZlQ2hhbmdlQ29udGV4dE9wdGlvbnMifQ==")), "options") unless options.nil?
  jsii_call_method("resolve", [x, options])
end

#scopeConstructs::IConstruct

The scope from which resolution has been initiated.

Returns:

  • (Constructs::IConstruct)


24
25
26
# File 'i_resolve_context.rb', line 24

def scope()
  jsii_get_property("scope")
end