create_instance_export_task
async
¶
create_instance_export_task(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
tag_specifications: Optional[TagSpecificationList] = None,
description: Optional[String] = None,
instance_id: Optional[InstanceId] = None,
target_environment: Optional[ExportEnvironment] = None,
export_to_s3_task: Optional[ExportToS3TaskSpecification] = None,
) -> CreateInstanceExportTaskResult
Exports a running or stopped instance to an Amazon S3 bucket.
For information about the prerequisites for your Amazon S3 bucket, supported operating systems, image formats, and known limitations for the types of instances you can export, see Exporting an instance as a VM Using VM Import/Export in the VM Import/Export User Guide.
Parameters:
-
tag_specifications(Optional[TagSpecificationList], default:None) –The tags to apply to the export instance task during creation.
-
description(Optional[String], default:None) –A description for the conversion task or the resource being exported. The maximum length is 255 characters.
-
instance_id(Optional[InstanceId], default:None) –The ID of the instance.
-
target_environment(Optional[ExportEnvironment], default:None) –The target virtualization environment.
-
export_to_s3_task(Optional[ExportToS3TaskSpecification], default:None) –The format and location for an export instance task.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 | |