class RP::EMR::Job

Public Instance Methods

to_hash() click to toggle source
# 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