Locks the mapping to prevent unexpected updates or deletion.

Example

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

import { MappingsClient, UnlockMappingCommand } from "@stedi/sdk-client-mappings"; // ES Modules import
// const { MappingsClient, UnlockMappingCommand } = require("@stedi/sdk-client-mappings"); // CommonJS import
const client = new MappingsClient(config);
const input = { // UnlockMappingInput
id: "STRING_VALUE", // required
};
const command = new UnlockMappingCommand(input);
const response = await client.send(command);
// { // UnlockMappingOutput
// lockStatus: "unlocked" || "locked", // required
// };

Param

UnlockMappingCommandInput

Returns

UnlockMappingCommandOutput

See

Throws

ResourceNotFoundException (client fault) The server response when the specified resource cannot be found after an API request passes authentication and authorization.

Throws

AccessDeniedException (client fault) The server response for authorization failure.

Throws

ThrottlingException (client fault) The server response when usage plan or account-level throttling limits exceeded.

Throws

UnauthorizedException (client fault) The server response when the authorizer failed to authenticate the caller.

Throws

RequestTooLargeException (client fault) The server response for the request too large error.

Throws

ResponseTooLargeException (client fault) The server response for the request too large error.

Throws

MappingsServiceException

Base exception class for all service exceptions from Mappings service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods

  • Returns EndpointParameterInstructions