Protected
Delete an existing function.
Use a bare-bones client and the command you need to make an API call.
import { FunctionsClient, DeleteFunctionCommand } from "@stedi/sdk-client-functions"; // ES Modules import// const { FunctionsClient, DeleteFunctionCommand } = require("@stedi/sdk-client-functions"); // CommonJS importconst client = new FunctionsClient(config);const input = { // DeleteFunctionInput idempotencyKey: "STRING_VALUE", functionName: "STRING_VALUE", // required};const command = new DeleteFunctionCommand(input);const response = await client.send(command);// { // DeleteFunctionOutput// functionName: "STRING_VALUE", // required// resourceDetail: { // DeleteResourceDetail// idempotencyKey: "STRING_VALUE", // required// },// };
DeleteFunctionCommandInput
DeleteFunctionCommandOutput
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
Delete an existing function.
Example
Use a bare-bones client and the command you need to make an API call.
Param
DeleteFunctionCommandInput
Returns
DeleteFunctionCommandOutput
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.