Class: AWSCDK::AppSync::SchemaProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_sync/schema_props.rb

Overview

The options for configuring a schema from an existing file.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_path:) ⇒ SchemaProps

Returns a new instance of SchemaProps.

Parameters:

  • file_path (String)

    The file path for the schema.



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_pathString (readonly)

The file path for the schema.

When this option is configured, then the schema will be generated from an existing file from disk.

Returns:

  • (String)


20
21
22
# File 'app_sync/schema_props.rb', line 20

def file_path
  @file_path
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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