Class: Aws::EC2::Types::ImportImageRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::ImportImageRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ec2/types.rb
Overview
When making an API call, you may pass ImportImageRequest data as a hash:
{
architecture: "String",
client_data: {
comment: "String",
upload_end: Time.now,
upload_size: 1.0,
upload_start: Time.now,
},
client_token: "String",
description: "String",
disk_containers: [
{
description: "String",
device_name: "String",
format: "String",
snapshot_id: "String",
url: "String",
user_bucket: {
s3_bucket: "String",
s3_key: "String",
},
},
],
dry_run: false,
hypervisor: "String",
license_type: "String",
platform: "String",
role_name: "String",
}
Contains the parameters for ImportImage.
Instance Attribute Summary collapse
-
#architecture ⇒ String
The architecture of the virtual machine.
-
#client_data ⇒ Types::ClientData
The client-specific data.
-
#client_token ⇒ String
The token to enable idempotency for VM import requests.
-
#description ⇒ String
A description string for the import image task.
-
#disk_containers ⇒ Array<Types::ImageDiskContainer>
Information about the disk containers.
-
#dry_run ⇒ Boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.
-
#hypervisor ⇒ String
The target hypervisor platform.
-
#license_type ⇒ String
The license type to be used for the Amazon Machine Image (AMI) after importing.
-
#platform ⇒ String
The operating system of the virtual machine.
-
#role_name ⇒ String
The name of the role to use when not using the default role, ‘vmimport’.
Instance Attribute Details
#architecture ⇒ String
The architecture of the virtual machine.
Valid values: ‘i386` | `x86_64`
14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 |
# File 'lib/aws-sdk-ec2/types.rb', line 14005 class ImportImageRequest < Struct.new( :architecture, :client_data, :client_token, :description, :disk_containers, :dry_run, :hypervisor, :license_type, :platform, :role_name) include Aws::Structure end |
#client_data ⇒ Types::ClientData
The client-specific data.
14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 |
# File 'lib/aws-sdk-ec2/types.rb', line 14005 class ImportImageRequest < Struct.new( :architecture, :client_data, :client_token, :description, :disk_containers, :dry_run, :hypervisor, :license_type, :platform, :role_name) include Aws::Structure end |
#client_token ⇒ String
The token to enable idempotency for VM import requests.
14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 |
# File 'lib/aws-sdk-ec2/types.rb', line 14005 class ImportImageRequest < Struct.new( :architecture, :client_data, :client_token, :description, :disk_containers, :dry_run, :hypervisor, :license_type, :platform, :role_name) include Aws::Structure end |
#description ⇒ String
A description string for the import image task.
14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 |
# File 'lib/aws-sdk-ec2/types.rb', line 14005 class ImportImageRequest < Struct.new( :architecture, :client_data, :client_token, :description, :disk_containers, :dry_run, :hypervisor, :license_type, :platform, :role_name) include Aws::Structure end |
#disk_containers ⇒ Array<Types::ImageDiskContainer>
Information about the disk containers.
14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 |
# File 'lib/aws-sdk-ec2/types.rb', line 14005 class ImportImageRequest < Struct.new( :architecture, :client_data, :client_token, :description, :disk_containers, :dry_run, :hypervisor, :license_type, :platform, :role_name) include Aws::Structure end |
#dry_run ⇒ Boolean
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`.
14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 |
# File 'lib/aws-sdk-ec2/types.rb', line 14005 class ImportImageRequest < Struct.new( :architecture, :client_data, :client_token, :description, :disk_containers, :dry_run, :hypervisor, :license_type, :platform, :role_name) include Aws::Structure end |
#hypervisor ⇒ String
The target hypervisor platform.
Valid values: ‘xen`
14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 |
# File 'lib/aws-sdk-ec2/types.rb', line 14005 class ImportImageRequest < Struct.new( :architecture, :client_data, :client_token, :description, :disk_containers, :dry_run, :hypervisor, :license_type, :platform, :role_name) include Aws::Structure end |
#license_type ⇒ String
The license type to be used for the Amazon Machine Image (AMI) after importing.
Note: You may only use BYOL if you have existing licenses with rights to use these licenses in a third party cloud like AWS. For more information, see [Prerequisites] in the VM Import/Export User Guide.
Valid values: ‘AWS` | `BYOL`
[1]: docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html#prerequisites-image
14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 |
# File 'lib/aws-sdk-ec2/types.rb', line 14005 class ImportImageRequest < Struct.new( :architecture, :client_data, :client_token, :description, :disk_containers, :dry_run, :hypervisor, :license_type, :platform, :role_name) include Aws::Structure end |
#platform ⇒ String
The operating system of the virtual machine.
Valid values: ‘Windows` | `Linux`
14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 |
# File 'lib/aws-sdk-ec2/types.rb', line 14005 class ImportImageRequest < Struct.new( :architecture, :client_data, :client_token, :description, :disk_containers, :dry_run, :hypervisor, :license_type, :platform, :role_name) include Aws::Structure end |
#role_name ⇒ String
The name of the role to use when not using the default role, ‘vmimport’.
14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 |
# File 'lib/aws-sdk-ec2/types.rb', line 14005 class ImportImageRequest < Struct.new( :architecture, :client_data, :client_token, :description, :disk_containers, :dry_run, :hypervisor, :license_type, :platform, :role_name) include Aws::Structure end |