You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::EC2::Types::ImportVolumeRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb

Overview

Note:

When making an API call, you may pass ImportVolumeRequest data as a hash:

{
  availability_zone: "String", # required
  description: "String",
  dry_run: false,
  image: { # required
    bytes: 1, # required
    format: "VMDK", # required, accepts VMDK, RAW, VHD
    import_manifest_url: "String", # required
  },
  volume: { # required
    size: 1, # required
  },
}

Contains the parameters for ImportVolume.

Instance Attribute Summary collapse

Instance Attribute Details

#availability_zoneString

The Availability Zone for the resulting EBS volume.

Returns:

  • (String)


14853
14854
14855
14856
14857
14858
14859
14860
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 14853

class ImportVolumeRequest < Struct.new(
  :availability_zone,
  :description,
  :dry_run,
  :image,
  :volume)
  include Aws::Structure
end

#descriptionString

A description of the volume.

Returns:

  • (String)


14853
14854
14855
14856
14857
14858
14859
14860
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 14853

class ImportVolumeRequest < Struct.new(
  :availability_zone,
  :description,
  :dry_run,
  :image,
  :volume)
  include Aws::Structure
end

#dry_runBoolean

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Returns:

  • (Boolean)


14853
14854
14855
14856
14857
14858
14859
14860
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 14853

class ImportVolumeRequest < Struct.new(
  :availability_zone,
  :description,
  :dry_run,
  :image,
  :volume)
  include Aws::Structure
end

#imageTypes::DiskImageDetail

The disk image.



14853
14854
14855
14856
14857
14858
14859
14860
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 14853

class ImportVolumeRequest < Struct.new(
  :availability_zone,
  :description,
  :dry_run,
  :image,
  :volume)
  include Aws::Structure
end

#volumeTypes::VolumeDetail

The volume size.

Returns:



14853
14854
14855
14856
14857
14858
14859
14860
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 14853

class ImportVolumeRequest < Struct.new(
  :availability_zone,
  :description,
  :dry_run,
  :image,
  :volume)
  include Aws::Structure
end