Protected
Update an existing function.
Use a bare-bones client and the command you need to make an API call.
import { FunctionsClient, UpdateFunctionCommand } from "@stedi/sdk-client-functions"; // ES Modules import// const { FunctionsClient, UpdateFunctionCommand } = require("@stedi/sdk-client-functions"); // CommonJS importconst client = new FunctionsClient(config);const input = { // UpdateFunctionInput idempotencyKey: "STRING_VALUE", functionName: "STRING_VALUE", // required packageBucket: "STRING_VALUE", packageKey: "STRING_VALUE", packageSha256: "STRING_VALUE", environmentVariables: { // EnvironmentVariables "<keys>": "STRING_VALUE", }, timeout: Number("int"), logRetention: 1 || 3 || 5 || 7 || 14 || 30 || 60 || 90 || 120 || 150 || 180 || 365 || 400 || 545 || 731 || 1827 || 3653, asyncInvokeConfig: { // AsyncInvokeConfig maximumRetryAttempts: Number("int"), }, reservedConcurrentExecutions: Number("int"), issueManagerName: "STRING_VALUE",};const command = new UpdateFunctionCommand(input);const response = await client.send(command);// { // UpdateFunctionOutput// functionName: "STRING_VALUE", // required// resourceDetail: { // UpdateResourceDetail// idempotencyKey: "STRING_VALUE", // required// },// };
UpdateFunctionCommandInput
UpdateFunctionCommandOutput
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
Update an existing function.
Example
Use a bare-bones client and the command you need to make an API call.
Param
UpdateFunctionCommandInput
Returns
UpdateFunctionCommandOutput
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.