Interface ISchema

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
ISchema.Jsii$Default
All Known Implementing Classes:
ISchema.Jsii$Proxy, SchemaFile

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-08-15T01:32:43.876Z") @Stability(Stable) public interface ISchema extends software.amazon.jsii.JsiiSerializable
Interface for implementing your own schema.

Useful for providing schema's from sources other than assets

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Internal default implementation for ISchema.
    static final class 
    A proxy class which represents a concrete javascript instance of this type.
  • Method Summary

    Modifier and Type
    Method
    Description
    Binds a schema string to a GraphQlApi.
    Binds a schema string to a GraphQlApi.

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Method Details

    • bind

      @Stability(Stable) @NotNull ISchemaConfig bind(@NotNull IGraphqlApi api, @Nullable SchemaBindOptions options)
      Binds a schema string to a GraphQlApi.

      Parameters:
      api - the api to bind the schema to. This parameter is required.
      options - configuration for bind behavior.
      Returns:
      ISchemaConfig with apiId and schema definition string
    • bind

      @Stability(Stable) @NotNull ISchemaConfig bind(@NotNull IGraphqlApi api)
      Binds a schema string to a GraphQlApi.

      Parameters:
      api - the api to bind the schema to. This parameter is required.
      Returns:
      ISchemaConfig with apiId and schema definition string