def taskdef_to_hash(taskdef)
      args = %i[family cpu memory requires_compatibilities task_role_arn execution_role_arn network_mode container_definitions volumes placement_constraints]
      taskdef.to_hash.slice(*args)
    end
def taskdef_to_hash(taskdef)
      args = %i[family cpu memory requires_compatibilities task_role_arn execution_role_arn network_mode container_definitions volumes placement_constraints]
      taskdef.to_hash.slice(*args)
    end
convert to hash for registering new taskdef