class AWS::EC2::ExportTaskCollection
See {Instance#export_to_s3} for more options.
task = ec2.instances.export_to_s3(‘bucket-name’)
To create an export task you start with the {Instance}:
# Creating Export Tasks
task = ec2.export_tasks[‘export-task-id’]
You can also get an export task by id
end
# yield ExportTask objects
ec2.export_tasks.each do |task|
Allows you to enumerate export tasks.
# Getting Export Tasks
def [] export_task_id
-
(ExportTask)
- Returns reference to the export task with the
Parameters:
-
export_task_id
(String
) --
def [] export_task_id ExportTask.new(export_task_id, :config => config) end
def _each_item options = {}, &block
def _each_item options = {}, &block resp = filtered_request(:describe_export_tasks, options, &block) resp.data[:export_task_set].each do |details| task = ExportTask.new_from( :describe_export_tasks, details, details[:export_task_id], :config => config) yield(task) end end