Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 785 Bytes

README.md

File metadata and controls

12 lines (8 loc) · 785 Bytes

CloudSearch (CloudSearch Domain)

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)