Jason Pascoe
userPool.addDomain('CognitoDomain', { cognitoDomain: { domainPrefix: 'myprefix' + stagevar, }, });
Jay