Module: AWSCDK::AppSync::ISchema
- Included in:
- SchemaFile
- Defined in:
- app_sync/i_schema.rb
Overview
Interface for implementing your own schema.
Useful for providing schema's from sources other than assets
Class Method Summary collapse
Instance Method Summary collapse
-
#bind(api, options = nil) ⇒ AWSCDK::AppSync::ISchemaConfig
Binds a schema string to a GraphQlApi.
Class Method Details
.jsii_overridable_methods ⇒ Object
21 22 23 24 25 |
# File 'app_sync/i_schema.rb', line 21 def self.jsii_overridable_methods { :bind => { kind: :method, name: "bind", is_optional: false }, } end |
Instance Method Details
#bind(api, options = nil) ⇒ AWSCDK::AppSync::ISchemaConfig
Binds a schema string to a GraphQlApi.
14 15 16 17 18 19 |
# File 'app_sync/i_schema.rb', line 14 def bind(api, = nil) Jsii::Type.check_type(api, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19hcHBzeW5jLklHcmFwaFFMQXBpUmVmIn0=")), "api") = .is_a?(Hash) ? ::AWSCDK::AppSync::SchemaBindOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwc3luYy5TY2hlbWFCaW5kT3B0aW9ucyJ9")), "options") unless .nil? jsii_call_method("bind", [api, ]) end |