Amplify Toolbox
    Preparing search index...

    Type Alias ConstructFactory<T>

    Functional interface for construct factories. All objects in the backend-engine definition must implement this interface.

    type ConstructFactory<T extends ResourceProvider = ResourceProvider> = {
        getInstance: (props: ConstructFactoryGetInstanceProps) => T;
        provides?: string;
    }

    Type Parameters

    Index

    Properties

    getInstance: (props: ConstructFactoryGetInstanceProps) => T
    provides?: string

    A construct factory can register that the return value implements additional interfaces Registering as a provider allows other construct factories to fetch this one based on the provides token