aws / aws-sdk-js-v3

Modularized AWS SDK for JavaScript.
Apache License 2.0
2.96k stars 556 forks source link

@aws-sdk/client-lambda: ListFunctionsCommand #6136

Closed eiglesia4 closed 3 weeks ago

eiglesia4 commented 1 month ago

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/

aBurmeseDev commented 1 month 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

github-actions[bot] commented 3 weeks ago

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.

github-actions[bot] commented 1 week ago

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.