Smaws_Client_Lightsail.ExportSnapshot
val request :
Smaws_Lib.Context.t ->
export_snapshot_request ->
(export_snapshot_result,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of access_denied_exception
| `AccountSetupInProgressException of account_setup_in_progress_exception
| `InvalidInputException of invalid_input_exception
| `NotFoundException of not_found_exception
| `OperationFailureException of operation_failure_exception
| `ServiceException of service_exception
| `UnauthenticatedException of unauthenticated_exception ])
Stdlib.result
Exports an Amazon Lightsail instance or block storage disk snapshot to Amazon Elastic Compute Cloud (Amazon EC2). This operation results in an export snapshot record that can be used with the create
cloud formation stack
operation to create new Amazon EC2 instances.
Exported instance snapshots appear in Amazon EC2 as Amazon Machine Images (AMIs), and the instance system disk appears as an Amazon Elastic Block Store (Amazon EBS) volume. Exported disk snapshots appear in Amazon EC2 as Amazon EBS volumes. Snapshots are exported to the same Amazon Web Services Region in Amazon EC2 as the source Lightsail snapshot.
The export snapshot
operation supports tag-based access control via resource tags applied to the resource identified by source snapshot name
. For more information, see the Amazon Lightsail Developer Guide.
Use the get instance snapshots
or get disk snapshots
operations to get a list of snapshots that you can export to Amazon EC2.