Retrieves a list of all versions for a mapping.

Example

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

import { MappingsClient, ListMappingVersionsCommand } from "@stedi/sdk-client-mappings"; // ES Modules import
// const { MappingsClient, ListMappingVersionsCommand } = require("@stedi/sdk-client-mappings"); // CommonJS import
const client = new MappingsClient(config);
const input = { // ListMappingVersionsInput
id: "STRING_VALUE", // required
pageToken: "STRING_VALUE",
pageSize: Number("int"),
};
const command = new ListMappingVersionsCommand(input);
const response = await client.send(command);
// { // ListMappingVersionsOutput
// nextPageToken: "STRING_VALUE",
// versions: [ // MappingVersionsList // required
// { // MappingVersion
// id: "STRING_VALUE", // required
// editedBy: "STRING_VALUE", // required
// versionId: "STRING_VALUE", // required
// publishedAt: "STRING_VALUE",
// },
// ],
// };

Param

ListMappingVersionsCommandInput

Returns

ListMappingVersionsCommandOutput

See

Throws

BadRequestException (client fault) The server cannot process the request due to an apparent client error.

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

InternalFailureException (server fault) The server response when an unexpected error occurred while processing request.

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

MappingsServiceException

Base exception class for all service exceptions from Mappings service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods

  • Returns EndpointParameterInstructions