function setDynamoParameters(endpoint, params) {
  return new DatastoreParameters({
    host: endpoint && (endpoint.host || endpoint.hostname),
    port_path_or_id: (endpoint && endpoint.port) || 443,
    collection: (params && params.TableName) || UNKNOWN
  })
}
Retrieves the db segment params from endpoint and command parameters

@param {Object} endpoint instance of ddb endpoint
@param {Object} params parameters passed to a ddb command
@returns {Object}