Class: AWS::EC2::ExportTask

Inherits:
Resource
  • Object
show all
Defined in:
lib/aws/ec2/export_task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#container_formatString (readonly)

The container format used to combine disk images with metadata (such as OVF).

Returns:

  • (String)

    the current value of container_format



43
44
45
# File 'lib/aws/ec2/export_task.rb', line 43

def container_format
  @container_format
end

#descriptionString (readonly)

Description of the resource being exported.

Returns:

  • (String)

    the current value of description



43
44
45
# File 'lib/aws/ec2/export_task.rb', line 43

def description
  @description
end

#disk_image_formatString (readonly)

The format for the exported image.

Returns:

  • (String)

    the current value of disk_image_format



43
44
45
# File 'lib/aws/ec2/export_task.rb', line 43

def disk_image_format
  @disk_image_format
end

#export_task_idString (readonly) Also known as: id

Returns:

  • (String)


52
53
54
# File 'lib/aws/ec2/export_task.rb', line 52

def export_task_id
  @export_task_id
end

#instance_idString (readonly)

ID of instance being exported.

Returns:

  • (String)

    the current value of instance_id



43
44
45
# File 'lib/aws/ec2/export_task.rb', line 43

def instance_id
  @instance_id
end

#s3_bucketS3::Bucket (readonly)

Returns:



43
44
45
# File 'lib/aws/ec2/export_task.rb', line 43

def s3_bucket
  @s3_bucket
end

#s3_keyString (readonly)

The key of the Amazon S3 object the image will be exported to.

Returns:

  • (String)

    the current value of s3_key



43
44
45
# File 'lib/aws/ec2/export_task.rb', line 43

def s3_key
  @s3_key
end

#stateSymbol (readonly)

State of the conversion task. Valid values :active, :cancelling, :cancelled and :completed.

Returns:

  • (Symbol)

    the current value of state



43
44
45
# File 'lib/aws/ec2/export_task.rb', line 43

def state
  @state
end

#status_messageString (readonly)

Status message related to the export task.

Returns:

  • (String)

    the current value of status_message



43
44
45
# File 'lib/aws/ec2/export_task.rb', line 43

def status_message
  @status_message
end

#target_environmentString (readonly)

The target virtualization environment.

Returns:

  • (String)

    the current value of target_environment



43
44
45
# File 'lib/aws/ec2/export_task.rb', line 43

def target_environment
  @target_environment
end

Instance Method Details

#cancelnil

Cancels the export task.

Returns:

  • (nil)


113
114
115
116
# File 'lib/aws/ec2/export_task.rb', line 113

def cancel
  client.cancel_export_task(:export_task_id => export_task_id)
  nil
end

#instanceInstance

Returns:



97
98
99
# File 'lib/aws/ec2/export_task.rb', line 97

def instance
  Instance.new(instance_id, :config => config)
end

#s3_objectS3::S3Object

Returns:



107
108
109
# File 'lib/aws/ec2/export_task.rb', line 107

def s3_object
  s3_bucket.objects[s3_key]
end