Protected
Invoke function.
Use a bare-bones client and the command you need to make an API call.
import { FunctionsClient, InvokeFunctionCommand } from "@stedi/sdk-client-functions"; // ES Modules import// const { FunctionsClient, InvokeFunctionCommand } = require("@stedi/sdk-client-functions"); // CommonJS importconst client = new FunctionsClient(config);const input = { // InvokeFunctionInput functionName: "STRING_VALUE", // required invocationType: "Synchronous" || "Asynchronous", payload: "DOCUMENT_VALUE",};const command = new InvokeFunctionCommand(input);const response = await client.send(command);// { // InvokeFunctionOutput// functionName: "STRING_VALUE", // required// payload: "DOCUMENT_VALUE",// error: "STRING_VALUE",// logTail: "STRING_VALUE",// invocationId: "STRING_VALUE",// };
InvokeFunctionCommandInput
InvokeFunctionCommandOutput
input
response
config
InvalidZipFileException (client fault)
RequestTooLargeException (client fault)
TooManyRequestsException (client fault)
AccessDeniedException (client fault)
ProductUnavailableException (client fault)
ResourceAlreadyExistsException (client fault)
ResourceNotFoundException (client fault)
ResourceUnderChangeException (client fault)
ServiceException (server fault)
FunctionsServiceException
Base exception class for all service exceptions from Functions service.
Readonly
Static
Invoke function.
Example
Use a bare-bones client and the command you need to make an API call.
Param
InvokeFunctionCommandInput
Returns
InvokeFunctionCommandOutput
See
input
shape.response
shape.config
shape.Throws
InvalidZipFileException (client fault)
Throws
RequestTooLargeException (client fault)
Throws
TooManyRequestsException (client fault)
Throws
AccessDeniedException (client fault)
Throws
ProductUnavailableException (client fault)
Throws
ResourceAlreadyExistsException (client fault)
Throws
ResourceNotFoundException (client fault)
Throws
ResourceUnderChangeException (client fault)
Throws
ServiceException (server fault)
Throws
FunctionsServiceException
Base exception class for all service exceptions from Functions service.