mira
Version:
NearForm Accelerator for Cloud Native Serverless AWS
47 lines • 1.13 kB
JavaScript
/**
* This module provides the AWS region autocomplete for the config bootstrap.
* @internal
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildSearchRegions = void 0;
/** @ignore - Excluded from documentation generation. */
const REGIONS = [
'us-east-2',
'us-east-1',
'us-west-1',
'us-west-2',
'ap-east-1',
'ap-south-1',
'ap-northeast-3',
'ap-northeast-2',
'ap-southeast-1',
'ap-southeast-2',
'ap-northeast-1',
'ca-central-1',
'cn-north-1',
'cn-northwest-1',
'eu-central-1',
'eu-west-1',
'eu-west-2',
'eu-west-3',
'eu-north-1',
'me-south-1',
'sa-east-1',
'us-gov-east-1',
'us-gov-west-1'
];
/**
* Build an autocomplete list of AWS regions
*
* @internal
* @ignore - Excluded from documentation generation.
* */
function buildSearchRegions() {
return async function searchRegions(_, input) {
input = input || '';
return REGIONS.filter(region => region.startsWith(input));
};
}
exports.buildSearchRegions = buildSearchRegions;
//# sourceMappingURL=autocomplete.js.map
;