UNPKG

aws-sdk-js-codemod

Version:

Collection of codemod scripts that help update AWS SDK for JavaScript APIs

12 lines (11 loc) 484 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getV3ClientName = void 0; const config_1 = require("../config"); // Returns v3 client name for the provided v2 client name. const getV3ClientName = (clientName) => { if (clientName in config_1.CLIENT_NAMES_MAP) return config_1.CLIENT_NAMES_MAP[clientName]; throw new Error(`Client '${clientName}' is either deprecated or newly added.`); }; exports.getV3ClientName = getV3ClientName;