create_instance_export_task
¶
create_instance_export_task(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 | |