Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
Synopsis
- data ExportSnapshot = ExportSnapshot' {}
- newExportSnapshot :: Text -> ExportSnapshot
- exportSnapshot_sourceSnapshotName :: Lens' ExportSnapshot Text
- data ExportSnapshotResponse = ExportSnapshotResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newExportSnapshotResponse :: Int -> ExportSnapshotResponse
- exportSnapshotResponse_operations :: Lens' ExportSnapshotResponse (Maybe [Operation])
- exportSnapshotResponse_httpStatus :: Lens' ExportSnapshotResponse Int
Creating a Request
data ExportSnapshot Source #
See: newExportSnapshot
smart constructor.
ExportSnapshot' | |
|
Instances
Create a value of ExportSnapshot
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:sourceSnapshotName:ExportSnapshot'
, exportSnapshot_sourceSnapshotName
- The name of the instance or disk snapshot to be exported to Amazon EC2.
Request Lenses
exportSnapshot_sourceSnapshotName :: Lens' ExportSnapshot Text Source #
The name of the instance or disk snapshot to be exported to Amazon EC2.
Destructuring the Response
data ExportSnapshotResponse Source #
See: newExportSnapshotResponse
smart constructor.
ExportSnapshotResponse' | |
|
Instances
newExportSnapshotResponse Source #
Create a value of ExportSnapshotResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:operations:ExportSnapshotResponse'
, exportSnapshotResponse_operations
- An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
$sel:httpStatus:ExportSnapshotResponse'
, exportSnapshotResponse_httpStatus
- The response's http status code.
Response Lenses
exportSnapshotResponse_operations :: Lens' ExportSnapshotResponse (Maybe [Operation]) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
exportSnapshotResponse_httpStatus :: Lens' ExportSnapshotResponse Int Source #
The response's http status code.