How to use amplify-category-predictions - 1 common examples

To help you get started, we’ve selected a few amplify-category-predictions 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-provider-awscloudformation / lib / display-helpful-urls.js View on Github external
async function showRekognitionURLS(context, resourcesToBeCreated) {
  const resource = resourcesToBeCreated.find(resource => {
    if (resource.identifyType && resource.identifyType === 'identifyEntities') {
      return true;
    }
    return false;
  });
  if (resource) {
    const { category, resourceName } = resource;
    const amplifyMeta = context.amplify.getProjectMeta();
    if (!amplifyMeta[category][resourceName].output) {
      return;
    }
    await predictionsConsole.printRekognitionUploadUrl(context, resourceName, amplifyMeta, true);
  }
}

amplify-category-predictions

amplify-cli predictions plugin

Apache-2.0
Latest version published 2 years ago

Package Health Score

72 / 100
Full package analysis