lib/plugins/aws/customResources/resources/cognitoUserPool/lib/userPool.js/getConfiguration
function getConfiguration(config) {
  const { region } = config;
  const cognito = new CognitoIdentityServiceProvider({ region });

  return findUserPoolByName(config).then(userPool =>
    cognito
      .describeUserPool({
        UserPoolId: userPool.Id,
      })
      .promise()
  );
}