Pass connection type for AWS connection initializer in login handler.