modify Instance, InstanceState interface and some aws Impl classes.