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 1 year ago

Package Health Score

75 / 100
Full package analysis