Delete an existing function.

Example

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 import
const 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
// },
// };

Param

DeleteFunctionCommandInput

Returns

DeleteFunctionCommandOutput

See

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.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods

  • Returns EndpointParameterInstructions