class AwsLifeCycleMapper {

    public CloudInstanceLifeCycle getLifeCycle(Instance instance) {
        return InstanceLifecycleType.Spot.toString().equals(instance.getInstanceLifecycle())
                ? CloudInstanceLifeCycle.SPOT
                : CloudInstanceLifeCycle.NORMAL;
    }

}