# ISchema

Interface for implementing your own schema.

Useful for providing schema's from sources other than assets

Extends: ISchema
Implemented by: SchemaFile

- Source: [`aws-appsync/lib/schema.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-appsync/lib/schema.ts#L35)
- Type last changed: v2.234.0 · 8 Jan 2026

## Methods

- `bind(api: IGraphQLApiRef, options?: SchemaBindOptions): ISchemaConfig` — Binds a schema string to a GraphQlApi.

  **Parameters**

  - `api` — the api to bind the schema to.
  - `options` — configuration for bind behavior.

  **Returns:** ISchemaConfig with apiId and schema definition string
