Class: AWSCDK::AppSync::SchemaProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppSync::SchemaProps
- Defined in:
- app_sync/schema_props.rb
Overview
The options for configuring a schema from an existing file.
Instance Attribute Summary collapse
-
#file_path ⇒ String
readonly
The file path for the schema.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(file_path:) ⇒ SchemaProps
constructor
A new instance of SchemaProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(file_path:) ⇒ SchemaProps
Returns a new instance of SchemaProps.
8 9 10 11 |
# File 'app_sync/schema_props.rb', line 8 def initialize(file_path:) @file_path = file_path Jsii::Type.check_type(@file_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "filePath") end |
Instance Attribute Details
#file_path ⇒ String (readonly)
The file path for the schema.
When this option is configured, then the schema will be generated from an existing file from disk.
20 21 22 |
# File 'app_sync/schema_props.rb', line 20 def file_path @file_path end |
Class Method Details
.jsii_properties ⇒ Object
22 23 24 25 26 |
# File 'app_sync/schema_props.rb', line 22 def self.jsii_properties { :file_path => "filePath", } end |
Instance Method Details
#to_jsii ⇒ Object
28 29 30 31 32 33 34 |
# File 'app_sync/schema_props.rb', line 28 def to_jsii result = {} result.merge!({ "filePath" => @file_path, }) result.compact end |