code: function configureKinesis(context, kinesisOptions) {
    if (!context.kinesis) {
      context.kinesis = setKinesis(kinesisOptions, context);
    }
    return context;
  }
docs: Creates and caches a new AWS Kinesis instance with the given Kinesis constructor options for either the region
  specified in the given options (if any and region specified) or for the current region (if not) UNLESS a previously
  cached Kinesis instance exists and the given options either match the options used to construct it or are undefined,
  empty or only region was specified, in which case no new instance will be created and the cached instance will
  be returned instead. If the given options do not match existing options and are not empty and not only region, then
  logs a warning that the previously cached Kinesis instance is being replaced and returns the new AWS Kinesis
  instance.
  
  Logging should be configured before calling this function (see {@linkcode logging-utils/logging#configureLogging})
  
  Configures the given context, if it does not already have a context.kinesis, with the cached kinesis instance for
  either the region specified in the given default kinesis options (if any and region specified) or for the current
  region (if not); otherwise with a new AWS.Kinesis instance created and cached by {@linkcode setKinesis} for
  the specified or current region using the given default Kinesis constructor options.
  
  Note that the given default Kinesis constructor options will ONLY be used if no cached Kinesis instance exists.
  
  Logging should be configured before calling this function (see {@linkcode logging-utils/logging#configureLogging})
  
  @param {Object|KinesisAware} context - the context to configure
  @param {Object|undefined} [kinesisOptions] - the optional Kinesis constructor options to use if no cached Kinesis
  instance exists
  @param {string|undefined} [kinesisOptions.region] - an optional region to use instead of the current region
  @returns {KinesisAware} the given context configured with an AWS.Kinesis instance