SchemaOptions

class aws_cdk.aws_appsync.SchemaOptions(*, file_path=None)

Bases: object

(experimental) The options for configuring a schema.

If no options are specified, then the schema will be generated code-first.

Parameters:

file_path (Optional[str]) – (experimental) The file path for the schema. When this option is configured, then the schema will be generated from an existing file from disk. Default: - schema not configured through disk asset

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_appsync as appsync

schema_options = appsync.SchemaOptions(
    file_path="filePath"
)

Attributes

file_path

(experimental) The file path for the schema.

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

Default:
  • schema not configured through disk asset

Stability:

experimental