24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/rp/emr/job.rb', line 24
def to_hash
{
instances: instances,
log_uri: log_uri,
additional_info: additional_info,
ami_version: ami_version.to_s,
steps: steps,
bootstrap_actions: bootstrap_actions,
supported_products: supported_products,
new_supported_products: new_supported_products,
visible_to_all_users: visible_to_all_users,
job_flow_role: job_flow_role,
service_role: service_role,
tags: tags,
}.reject { |k,v| !v || (v.respond_to?(:empty?) && v.empty?) }
end
|