Class: AWSCDK::AppSync::InlineCode
- Inherits:
-
Code
- Object
- Code
- AWSCDK::AppSync::InlineCode
- Defined in:
- app_sync/inline_code.rb
Overview
AppSync function code from an inline string.
Class Method Summary collapse
Instance Method Summary collapse
-
#bind(_scope) ⇒ AWSCDK::AppSync::CodeConfig
Bind source code to an AppSync Function or resolver.
-
#initialize(code) ⇒ InlineCode
constructor
A new instance of InlineCode.
Constructor Details
#initialize(code) ⇒ InlineCode
Returns a new instance of InlineCode.
9 10 11 12 |
# File 'app_sync/inline_code.rb', line 9 def initialize(code) Jsii::Type.check_type(code, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "code") Jsii::Object.instance_method(:initialize).bind(self).call(code) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
14 15 16 17 18 |
# File 'app_sync/inline_code.rb', line 14 def self.jsii_overridable_methods { :bind => { kind: :method, name: "bind", is_optional: false }, } end |
Instance Method Details
#bind(_scope) ⇒ AWSCDK::AppSync::CodeConfig
Bind source code to an AppSync Function or resolver.
24 25 26 27 |
# File 'app_sync/inline_code.rb', line 24 def bind(_scope) Jsii::Type.check_type(_scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "_scope") jsii_call_method("bind", [_scope]) end |