Get an instance of the CloudSearch Domain API, stored as client
on a CloudSearch
instance. All methods described in the docs are available as Bluebird promisified versions (search becomes searchAsync, for example).
To set up the lib:
const aws = require('@sparkpost/aws');
const cs = new aws.CloudSearch({endpoint: "https://search-my-cs-domain-url.com"}).client;
Note that for some strange reason, it is required that you pass the CloudSearch endpoint parameter in as part of the instantiation of a new client (which is documented here)