Jump to Content

New API Documentation - Developer Preview Available

We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.

Class DeleteAccessLogSettingsCommandProtected

Deletes the AccessLogSettings for a Stage. To disable access logging for a Stage, delete its AccessLogSettings.

Example

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

import { ApiGatewayV2Client, DeleteAccessLogSettingsCommand } from "@aws-sdk/client-apigatewayv2"; // ES Modules import
// const { ApiGatewayV2Client, DeleteAccessLogSettingsCommand } = require("@aws-sdk/client-apigatewayv2"); // CommonJS import
const client = new ApiGatewayV2Client(config);
const input = { // DeleteAccessLogSettingsRequest
ApiId: "STRING_VALUE", // required
StageName: "STRING_VALUE", // required
};
const command = new DeleteAccessLogSettingsCommand(input);
const response = await client.send(command);
// {};

Param

DeleteAccessLogSettingsCommandInput

Returns

DeleteAccessLogSettingsCommandOutput

See

Throws

NotFoundException (client fault)

The resource specified in the request was not found. See the message field for more information.

Throws

TooManyRequestsException (client fault)

A limit has been exceeded. See the accompanying error message for details.

Throws

ApiGatewayV2ServiceException

Base exception class for all service exceptions from ApiGatewayV2 service.

Hierarchy

Constructors

Properties

Methods