if (launchSpec.getKeyName() != null)
options.withKeyName(launchSpec.getKeyName());
if (launchSpec.getRamdiskId() != null)
options.withRamdisk(launchSpec.getRamdiskId());
if (Boolean.TRUE.equals(launchSpec.isMonitoringEnabled()))
options.enableMonitoring();
if (launchSpec.getUserData() != null)
options.withUserData(launchSpec.getUserData());
if (launchSpec.getIAMInstanceProfile().isPresent()) {
IAMInstanceProfileRequest profile = launchSpec.getIAMInstanceProfile().get();
if (profile.getArn().isPresent())