api: passing named parameters to ec2 connection