class AWS::EC2::ExportTask

@attr_reader [String] description

Description of the resource being exported.

@attr_reader [Symbol] state State of the conversion task.

Valid values :active, :cancelling, :cancelled and :completed.

@attr_reader [String] status_message Status message related to the

export task.

@attr_reader [String] instance_id ID of instance being exported.

@attr_reader [String] target_environment The target virtualization

environment.

@attr_reader [String] disk_image_format The format for the exported

image.

@attr_reader [String] container_format The container format used to

combine disk images with metadata (such as OVF).

@attr_reader [String] s3_bucket The name of the Amazon S3 bucket

the image will be exported to.

@attr_reader [String] s3_key The key of the Amazon S3 object

the image will be exported to.

Attributes

export_task_id[R]

@return [String]

id[R]

@return [String]

Public Class Methods

new(export_task_id, options = {}) click to toggle source

@private

Calls superclass method
# File lib/aws/ec2/export_task.rb, line 46
def initialize export_task_id, options = {}
  @export_task_id = export_task_id
  super
end

Public Instance Methods

cancel() click to toggle source

Cancels the export task. @return [nil]

# File lib/aws/ec2/export_task.rb, line 113
def cancel
  client.cancel_export_task(:export_task_id => export_task_id)
  nil
end
instance() click to toggle source

@return [Instance]

# File lib/aws/ec2/export_task.rb, line 97
def instance
  Instance.new(instance_id, :config => config)
end
s3_bucket() click to toggle source

@return [S3::Bucket]

# File lib/aws/ec2/export_task.rb, line 102
def s3_bucket
  S3::Bucket.new(s3_bucket_name, :config => config)
end
s3_object() click to toggle source

@return [S3::S3Object]

# File lib/aws/ec2/export_task.rb, line 107
def s3_object
  s3_bucket.objects[s3_key]
end