Protected
Locks the mapping to prevent unexpected updates or deletion.
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 importconst 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// };
UnlockMappingCommandInput
UnlockMappingCommandOutput
input
response
config
ResourceNotFoundException (client fault) The server response when the specified resource cannot be found after an API request passes authentication and authorization.
AccessDeniedException (client fault) The server response for authorization failure.
ThrottlingException (client fault) The server response when usage plan or account-level throttling limits exceeded.
UnauthorizedException (client fault) The server response when the authorizer failed to authenticate the caller.
RequestTooLargeException (client fault) The server response for the request too large error.
ResponseTooLargeException (client fault) The server response for the request too large error.
MappingsServiceException
Base exception class for all service exceptions from Mappings service.
Readonly
Static
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.
Param
UnlockMappingCommandInput
Returns
UnlockMappingCommandOutput
See
input
shape.response
shape.config
shape.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.