Connect to redshift database

can anyone share the code snippet to connect to aws redshift and use the validators