if (profile.getArn().isPresent())
options.withIAMInstanceProfileArn(profile.getArn().get());
if (profile.getName().isPresent())
options.withIAMInstanceProfileName(profile.getName().get());
}
for (Entry<String, String> entry : options.buildFormParameters().entries()) {
builder.put("LaunchSpecification." + entry.getKey(), entry.getValue());
}
return builder.build();
}
}