[aws_cpi] use new ResourceWait class