in lib/index.js [15:29]
constructor(event, callback, params) {
params.region = params.identityPool.split(':')[0];
config.sts = prefixUrl(`sts.${params.region}.amazonaws.com`);
config.region = params.region;
this.callback = callback;
this.params = params;
if (!this.params.provider) throw new Error('No Provider found.');
if (!this.params.identityPool) throw new Error('No IdentityPool Id found.');
if (!this.params.url) throw new Error('No Url found.');
this.request = event.Records[0].cf.request;
this.path = this.request.uri || '';
this.token = new Token(params);
this.credentials = new Credentials(params);
display('REQUEST', this.request);
}