UNPKG

@aws-sdk/config-resolver

Version:

[![NPM version](https://img.shields.io/npm/v/@aws-sdk/config-resolver/latest.svg)](https://www.npmjs.com/package/@aws-sdk/config-resolver) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/config-resolver.svg)](https://www.npmjs.com/package/@aws-sd

6 lines (5 loc) 388 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getResolvedPartition = void 0; const getResolvedPartition = (region, { partitionHash }) => { var _a; return (_a = Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region))) !== null && _a !== void 0 ? _a : "aws"; }; exports.getResolvedPartition = getResolvedPartition;