libZSservicesZSamazonka-lightsailZSamazonka-lightsail
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Lightsail.ExportSnapshot

Description

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

Creating a Request

data ExportSnapshot Source #

See: newExportSnapshot smart constructor.

Constructors

ExportSnapshot' 

Fields

Instances

Instances details
Eq ExportSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.ExportSnapshot

Read ExportSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.ExportSnapshot

Show ExportSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.ExportSnapshot

Generic ExportSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.ExportSnapshot

Associated Types

type Rep ExportSnapshot :: Type -> Type #

NFData ExportSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.ExportSnapshot

Methods

rnf :: ExportSnapshot -> () #

Hashable ExportSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.ExportSnapshot

ToJSON ExportSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.ExportSnapshot

AWSRequest ExportSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.ExportSnapshot

Associated Types

type AWSResponse ExportSnapshot #

ToHeaders ExportSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.ExportSnapshot

ToPath ExportSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.ExportSnapshot

ToQuery ExportSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.ExportSnapshot

type Rep ExportSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.ExportSnapshot

type Rep ExportSnapshot = D1 ('MetaData "ExportSnapshot" "Amazonka.Lightsail.ExportSnapshot" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "ExportSnapshot'" 'PrefixI 'True) (S1 ('MetaSel ('Just "sourceSnapshotName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse ExportSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.ExportSnapshot

newExportSnapshot Source #

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.

Constructors

ExportSnapshotResponse' 

Fields

  • operations :: Maybe [Operation]

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ExportSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ExportSnapshot

Read ExportSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ExportSnapshot

Show ExportSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ExportSnapshot

Generic ExportSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ExportSnapshot

Associated Types

type Rep ExportSnapshotResponse :: Type -> Type #

NFData ExportSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ExportSnapshot

Methods

rnf :: ExportSnapshotResponse -> () #

type Rep ExportSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ExportSnapshot

type Rep ExportSnapshotResponse = D1 ('MetaData "ExportSnapshotResponse" "Amazonka.Lightsail.ExportSnapshot" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "ExportSnapshotResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.