Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class DeleteLayerVersionCommandProtected

Deletes a version of an Lambda layer. Deleted versions can no longer be viewed or added to functions. To avoid breaking functions, a copy of the version remains in Lambda until no functions refer to it.

Example

Use a bare-bones client and the command you need to make an API call.

import { LambdaClient, DeleteLayerVersionCommand } from "@aws-sdk/client-lambda"; // ES Modules import
// const { LambdaClient, DeleteLayerVersionCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
const client = new LambdaClient(config);
const input = { // DeleteLayerVersionRequest
LayerName: "STRING_VALUE", // required
VersionNumber: Number("long"), // required
};
const command = new DeleteLayerVersionCommand(input);
const response = await client.send(command);
// {};

Param

DeleteLayerVersionCommandInput

Returns

DeleteLayerVersionCommandOutput

See

Throws

ServiceException (server fault)

The Lambda service encountered an internal error.

Throws

TooManyRequestsException (client fault)

The request throughput limit was exceeded. For more information, see Lambda quotas.

Throws

LambdaServiceException

Base exception class for all service exceptions from Lambda service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods