regions.js
function getRegion() {
  const awsRegion = trim(process.env.AWS_REGION);
  return awsRegion !== "undefined" && awsRegion !== "null" ? awsRegion : undefined;
}
function getRegion() {
  const awsRegion = trim(process.env.AWS_REGION);
  return awsRegion !== "undefined" && awsRegion !== "null" ? awsRegion : undefined;
}
function getRegion ( ) { const awsRegion = trim ( process . env . AWS_REGION ) ; return awsRegion !== "undefined" && awsRegion !== "null" ? awsRegion : undefined ; }
Gets the region in which this function is running from the `AWS_REGION` environment variable and returns it as is if
it's neither "undefined" nor "null"; otherwise returns undefined.
@returns {string|undefined} the AWS region (if it exists); otherwise undefined.
Gets the region in which this function is running from the AWS_REGION environment variable and returns it as is if it s neither undefined nor null ; otherwise returns undefined .