Exports an Amazon Machine Image (AMI) to a VM file. For more information, see Exporting a VM Directory from an Amazon Machine Image (AMI) in the VM Import/Export User Guide.
ec2_export_image(ClientToken, Description, DiskImageFormat, DryRun,
ImageId, S3ExportLocation, RoleName, TagSpecifications)
A list with the following syntax:
list(
Description = "string",
DiskImageFormat = "VMDK"|"RAW"|"VHD",
ExportImageTaskId = "string",
ImageId = "string",
RoleName = "string",
Progress = "string",
S3ExportLocation = list(
S3Bucket = "string",
S3Prefix = "string"
),
Status = "string",
StatusMessage = "string",
Tags = list(
list(
Key = "string",
Value = "string"
)
)
)
Token to enable idempotency for export image requests.
A description of the image being exported. The maximum length is 255 characters.
[required] The disk image format.
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
.
[required] The ID of the image.
[required] Information about the destination Amazon S3 bucket. The bucket must exist and grant WRITE and READ_ACP permissions to the AWS account vm-import-export@amazon.com.
The name of the role that grants VM Import/Export permission to export images to your Amazon S3 bucket. If this parameter is not specified, the default role is named 'vmimport'.
The tags to apply to the image being exported.
svc$export_image(
ClientToken = "string",
Description = "string",
DiskImageFormat = "VMDK"|"RAW"|"VHD",
DryRun = TRUE|FALSE,
ImageId = "string",
S3ExportLocation = list(
S3Bucket = "string",
S3Prefix = "string"
),
RoleName = "string",
TagSpecifications = list(
list(
ResourceType = "client-vpn-endpoint"|"customer-gateway"|"dedicated-host"|"dhcp-options"|"egress-only-internet-gateway"|"elastic-ip"|"elastic-gpu"|"export-image-task"|"export-instance-task"|"fleet"|"fpga-image"|"host-reservation"|"image"|"import-image-task"|"import-snapshot-task"|"instance"|"internet-gateway"|"key-pair"|"launch-template"|"local-gateway-route-table-vpc-association"|"natgateway"|"network-acl"|"network-interface"|"network-insights-analysis"|"network-insights-path"|"placement-group"|"reserved-instances"|"route-table"|"security-group"|"snapshot"|"spot-fleet-request"|"spot-instances-request"|"subnet"|"traffic-mirror-filter"|"traffic-mirror-session"|"traffic-mirror-target"|"transit-gateway"|"transit-gateway-attachment"|"transit-gateway-connect-peer"|"transit-gateway-multicast-domain"|"transit-gateway-route-table"|"volume"|"vpc"|"vpc-peering-connection"|"vpn-connection"|"vpn-gateway"|"vpc-flow-log",
Tags = list(
list(
Key = "string",
Value = "string"
)
)
)
)
)