How to use the amplify-category-function.invoke function in amplify-category-function

To help you get started, we’ve selected a few amplify-category-function examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aws-amplify / amplify-cli / packages / amplify-util-mock / src / storage / storage.ts View on Github external
}
        if (triggerName !== undefined) {
          break;
        }
      }

      const srcDir = path.normalize(path.join(backendPath, category, String(triggerName), 'src'));
      const event = eventObj;

      const invokeOptions = {
        packageFolder: srcDir,
        fileName: `${srcDir}/index.js`,
        handler: 'handler',
        event,
      };
      invoke(invokeOptions);
    });
  }

amplify-category-function

amplify-cli function plugin

Apache-2.0
Latest version published 2 years ago

Package Health Score

72 / 100
Full package analysis