Protected
Maps the provided JSON to a different shape according to the specified mapping definition.
Use a bare-bones client and the command you need to make an API call.
import { MappingsClient, MapDocumentCommand } from "@stedi/sdk-client-mappings"; // ES Modules import// const { MappingsClient, MapDocumentCommand } = require("@stedi/sdk-client-mappings"); // CommonJS importconst client = new MappingsClient(config);const input = { // MapDocumentInput id: "STRING_VALUE", // required content: "DOCUMENT_VALUE", validationMode: "strict",};const command = new MapDocumentCommand(input);const response = await client.send(command);// { // MapDocumentOutput// content: "DOCUMENT_VALUE",// };
MapDocumentCommandInput
MapDocumentCommandOutput
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.
MappingFailedException (client fault)
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
Maps the provided JSON to a different shape according to the specified mapping definition.
Example
Use a bare-bones client and the command you need to make an API call.
Param
MapDocumentCommandInput
Returns
MapDocumentCommandOutput
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
MappingFailedException (client fault)
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.