Module: AWSCDK::ITokenResolver
- Included in:
- DefaultTokenResolver
- Defined in:
- i_token_resolver.rb
Overview
How to resolve tokens.
Class Method Summary collapse
Instance Method Summary collapse
-
#resolve_list(l, context) ⇒ Object
Resolve a tokenized list.
-
#resolve_string(s, context) ⇒ Object
Resolve a string with at least one stringified token in it.
-
#resolve_token(t, context, post_processor) ⇒ Object
Resolve a single token.
Class Method Details
.jsii_overridable_methods ⇒ Object
44 45 46 47 48 49 50 |
# File 'i_token_resolver.rb', line 44 def self.jsii_overridable_methods { :resolve_list => { kind: :method, name: "resolveList", is_optional: false }, :resolve_string => { kind: :method, name: "resolveString", is_optional: false }, :resolve_token => { kind: :method, name: "resolveToken", is_optional: false }, } end |
Instance Method Details
#resolve_list(l, context) ⇒ Object
Resolve a tokenized list.
12 13 14 15 16 |
# File 'i_token_resolver.rb', line 12 def resolve_list(l, context) Jsii::Type.check_type(l, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "l") Jsii::Type.check_type(context, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5JUmVzb2x2ZUNvbnRleHQifQ==")), "context") jsii_call_method("resolveList", [l, context]) end |
#resolve_string(s, context) ⇒ Object
Resolve a string with at least one stringified token in it.
(May use concatenation)
25 26 27 28 29 |
# File 'i_token_resolver.rb', line 25 def resolve_string(s, context) Jsii::Type.check_type(s, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5Ub2tlbml6ZWRTdHJpbmdGcmFnbWVudHMifQ==")), "s") Jsii::Type.check_type(context, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5JUmVzb2x2ZUNvbnRleHQifQ==")), "context") jsii_call_method("resolveString", [s, context]) end |
#resolve_token(t, context, post_processor) ⇒ Object
Resolve a single token.
37 38 39 40 41 42 |
# File 'i_token_resolver.rb', line 37 def resolve_token(t, context, post_processor) Jsii::Type.check_type(t, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5JUmVzb2x2YWJsZSJ9")), "t") Jsii::Type.check_type(context, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5JUmVzb2x2ZUNvbnRleHQifQ==")), "context") Jsii::Type.check_type(post_processor, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5JUG9zdFByb2Nlc3NvciJ9")), "postProcessor") jsii_call_method("resolveToken", [t, context, post_processor]) end |