code: def _get_aws_variables(self):
          
  
          result = {
              # Variable that says this function is running in Local Lambda
              "AWS_SAM_LOCAL": "true",
  
              # Function configuration
              "AWS_LAMBDA_FUNCTION_MEMORY_SIZE": str(self.memory),
              "AWS_LAMBDA_FUNCTION_TIMEOUT": str(self.timeout),
              "AWS_LAMBDA_FUNCTION_HANDLER": str(self._function["handler"]),
  
              # AWS Credentials - Use the input credentials or use the defaults
              "AWS_REGION": self.aws_creds.get("region", self._DEFAULT_AWS_CREDS["region"]),
  
              "AWS_DEFAULT_REGION": self.aws_creds.get("region", self._DEFAULT_AWS_CREDS["region"]),
  
              "AWS_ACCESS_KEY_ID": self.aws_creds.get("key", self._DEFAULT_AWS_CREDS["key"]),
  
              "AWS_SECRET_ACCESS_KEY": self.aws_creds.get("secret", self._DEFAULT_AWS_CREDS["secret"])
  
              # Additional variables we don't fill in
              # "AWS_ACCOUNT_ID="
              # "AWS_LAMBDA_EVENT_BODY=",
              # "AWS_LAMBDA_FUNCTION_NAME=",
              # "AWS_LAMBDA_FUNCTION_VERSION=",
          }
  
          # Session Token should be added **only** if the input creds have a token and the value is not empty.
          if self.aws_creds.get("sessiontoken"):
              result["AWS_SESSION_TOKEN"] = self.aws_creds.get("sessiontoken")
  
          return result
docs: Returns the AWS specific environment variables that should be available in the Lambda runtime.
          They are prefixed it "AWS_*".
  
          :return dict: Name and value of AWS environment variable