mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
✨ Add WS comprehend detect entities + Load more Lambda functions (#1742)
* Functions are listed recursively if the number of functions exceeds 50 * Added the DetectEntities action to the Aws Comprehend Node
This commit is contained in:
committed by
GitHub
parent
5809b1e098
commit
71ec72493c
@@ -140,6 +140,27 @@ export class AwsLambda implements INodeType {
|
||||
value: func.FunctionArn as string,
|
||||
});
|
||||
}
|
||||
|
||||
if (data.NextMarker) {
|
||||
let marker: string = data.NextMarker;
|
||||
while (true) {
|
||||
const dataLoop = await awsApiRequestREST.call(this, 'lambda', 'GET', `/2015-03-31/functions/?MaxItems=50&Marker=${encodeURIComponent(marker)}`);
|
||||
|
||||
for (const func of dataLoop.Functions!) {
|
||||
returnData.push({
|
||||
name: func.FunctionName as string,
|
||||
value: func.FunctionArn as string,
|
||||
});
|
||||
}
|
||||
|
||||
if (dataLoop.NextMarker) {
|
||||
marker = dataLoop.NextMarker;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return returnData;
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user