original_docstring:  Decorator that will check and add queryStringParameters
          and pathParameters to the event kwargs.
  
      Args:
          required_querystring (iterable): Required queryStringParameters
          optional_querystring (iterable): Optional queryStringParameters
          path (iterable): pathParameters (these are always required)
  
      Returns:
          handler (func): a lambda handler function that is namespace aware
      
docstring: Decorator that will check and add queryStringParameters
  and pathParameters to the event kwargs.
docstring_tokens: Decorator that will check and add queryStringParameters and pathParameters to the event kwargs .
code: def parameters(required_querystring=None, optional_querystring=None, path=None, error=None):
      """ Decorator that will check and add queryStringParameters
          and pathParameters to the event kwargs.
  
      Args:
          required_querystring (iterable): Required queryStringParameters
          optional_querystring (iterable): Optional queryStringParameters
          path (iterable): pathParameters (these are always required)
  
      Returns:
          handler (func): a lambda handler function that is namespace aware
      """
      def parameters_handler(handler):
          def handler_wrapper(event, context, **kwargs):
              for param in required_querystring if required_querystring else {}:
                  value = utils.deep_get(event, 'queryStringParameters', param)
                  if not value:
                      logger.error(f'queryStringParameter [{param}] missing from event [{event}].')
                      return {'statusCode': 400, 'body': error or f'Invalid {param}.'}
                  kwargs[param] = value
              for param in optional_querystring if optional_querystring else {}:
                  value = utils.deep_get(event, 'queryStringParameters', param)
                  if value:
                      kwargs[param] = value
              for param in path if path else {}:
                  value = utils.deep_get(event, 'pathParameters', param)
                  if not value:
                      logger.error(f'pathParameter [{param}] missing from event [{event}].')
                      return {'statusCode': 400, 'body': error or f'Invalid {param}.'}
                  kwargs[param] = value
              return handler(event, context, **kwargs)
  
          return handler_wrapper
  
      return parameters_handler
code_tokens: def parameters ( required_querystring = None , optional_querystring = None , path = None , error = None ) : def parameters_handler ( handler ) : def handler_wrapper ( event , context , ** kwargs ) : for param in required_querystring if required_querystring else { } : value = utils . deep_get ( event , 'queryStringParameters' , param ) if not value : logger . error ( f'queryStringParameter [{param}] missing from event [{event}].' ) return { 'statusCode' : 400 , 'body' : error or f'Invalid {param}.' } kwargs [ param ] = value for param in optional_querystring if optional_querystring else { } : value = utils . deep_get ( event , 'queryStringParameters' , param ) if value : kwargs [ param ] = value for param in path if path else { } : value = utils . deep_get ( event , 'pathParameters' , param ) if not value : logger . error ( f'pathParameter [{param}] missing from event [{event}].' ) return { 'statusCode' : 400 , 'body' : error or f'Invalid {param}.' } kwargs [ param ] = value return handler ( event , context , ** kwargs ) return handler_wrapper return parameters_handler
short_docstring: Decorator that will check and add queryStringParameters
  and pathParameters to the event kwargs.
short_docstring_tokens: Decorator that will check and add queryStringParameters and pathParameters to the event kwargs .
comment: """ Decorator that will check and add queryStringParameters
          and pathParameters to the event kwargs.
  
      Args:
          required_querystring (iterable): Required queryStringParameters
          optional_querystring (iterable): Optional queryStringParameters
          path (iterable): pathParameters (these are always required)
  
      Returns:
          handler (func): a lambda handler function that is namespace aware
      """