Closed eiglesia4 closed 3 weeks ago
Hi @eiglesia4 - thanks for reaching out.
I was able to run it successfully without any params which indicates MasterRegion
is optional. Can you share your code (without any sensitive info) and the error you're getting that would give me some insight into the behavior?
import { LambdaClient, ListFunctionsCommand } from "@aws-sdk/client-lambda";
const client = new LambdaClient();
const input = {};
const command = new ListFunctionsCommand(input);
const response = await client.send(command);
console.log(response)
Best, John
This issue has not received a response in 1 week. If you still think there is a problem, please leave a comment to avoid the issue from automatically closing.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
Describe the issue
The doc does not indicate that input parameter MasterRegion is mandatory, but indeed the function fails if not present. Also when set, but not set FunctionVersion, the call fails (as has to be) but the message indicates MasterArn instead MasterRegion. Says something like "FunctionVersion cannot be NULL when MasterArn is set".
Links
https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lambda/command/ListFunctionsCommand/