@altostra/core
Version:
Core library for shared types and logic
1 lines • 808 B
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0}),exports.isAwsRegion=exports.awsRegion=exports.awsRegionsSet=void 0;const AltoError_1=require("../../common/Errors/AltoError"),type_validations_1=require("@altostra/type-validations");function awsRegion(e){if(!(0,exports.isAwsRegion)(e))throw AltoError_1.AltoError.create(e+" is not a valid aws region",{});return e}exports.awsRegionsSet=new Set(["us-east-2","us-east-1","us-west-1","us-west-2","af-south-1","ap-east-1","ap-south-1","ap-northeast-3","ap-northeast-2","ap-southeast-1","ap-southeast-2","ap-northeast-1","ca-central-1","eu-central-1","eu-west-1","eu-west-2","eu-west-3","eu-south-1","eu-north-1","me-south-1","sa-east-1"]),exports.awsRegion=awsRegion,exports.isAwsRegion=(0,type_validations_1.enumOf)(...exports.awsRegionsSet);