references IAmplifyGraphqlDefinition from: https://github.com/aws-amplify/amplify-category-api/blob/4c0ea253a0bae51f775383929ba4748593185bc1/packages/amplify-graphql-api-construct/src/types.ts#L491-L503

function slots is any'd for now. Will add actual type when we add support for this feature

interface DerivedApiDefinition {
    customSqlDataSourceStrategies?: CustomSqlDataSourceStrategy[];
    functionSchemaAccess: FunctionSchemaAccess[];
    functionSlots: any[];
    jsFunctions: JsResolver[];
    lambdaFunctions: LambdaFunctionDefinition;
    schema: string;
}

Properties

customSqlDataSourceStrategies?: CustomSqlDataSourceStrategy[]
functionSchemaAccess: FunctionSchemaAccess[]
functionSlots: any[]

Retrieve any function slots defined explicitly in the Api definition.

Returns

generated function slots

jsFunctions: JsResolver[]
lambdaFunctions: LambdaFunctionDefinition
schema: string

Return the schema definition as a graphql string, with amplify directives allowed.

Returns

the rendered schema.