Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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);
}
}