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.CreateInstanceSnapshot

Description

Creates a snapshot of a specific virtual private server, or instance. You can use a snapshot to create a new instance that is based on that snapshot.

The create instance snapshot operation supports tag-based access control via request tags. For more information, see the Amazon Lightsail Developer Guide.

Synopsis

Creating a Request

data CreateInstanceSnapshot Source #

See: newCreateInstanceSnapshot smart constructor.

Constructors

CreateInstanceSnapshot' 

Fields

  • tags :: Maybe [Tag]

    The tag keys and optional values to add to the resource during create.

    Use the TagResource action to tag a resource after it's created.

  • instanceSnapshotName :: Text

    The name for your new snapshot.

  • instanceName :: Text

    The Lightsail instance on which to base your snapshot.

Instances

Instances details
Eq CreateInstanceSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateInstanceSnapshot

Read CreateInstanceSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateInstanceSnapshot

Show CreateInstanceSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateInstanceSnapshot

Generic CreateInstanceSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateInstanceSnapshot

Associated Types

type Rep CreateInstanceSnapshot :: Type -> Type #

NFData CreateInstanceSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateInstanceSnapshot

Methods

rnf :: CreateInstanceSnapshot -> () #

Hashable CreateInstanceSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateInstanceSnapshot

ToJSON CreateInstanceSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateInstanceSnapshot

AWSRequest CreateInstanceSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateInstanceSnapshot

Associated Types

type AWSResponse CreateInstanceSnapshot #

ToHeaders CreateInstanceSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateInstanceSnapshot

ToPath CreateInstanceSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateInstanceSnapshot

ToQuery CreateInstanceSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateInstanceSnapshot

type Rep CreateInstanceSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateInstanceSnapshot

type Rep CreateInstanceSnapshot = D1 ('MetaData "CreateInstanceSnapshot" "Amazonka.Lightsail.CreateInstanceSnapshot" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "CreateInstanceSnapshot'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: (S1 ('MetaSel ('Just "instanceSnapshotName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "instanceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateInstanceSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.CreateInstanceSnapshot

newCreateInstanceSnapshot Source #

Create a value of CreateInstanceSnapshot 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:tags:CreateInstanceSnapshot', createInstanceSnapshot_tags - The tag keys and optional values to add to the resource during create.

Use the TagResource action to tag a resource after it's created.

$sel:instanceSnapshotName:CreateInstanceSnapshot', createInstanceSnapshot_instanceSnapshotName - The name for your new snapshot.

$sel:instanceName:CreateInstanceSnapshot', createInstanceSnapshot_instanceName - The Lightsail instance on which to base your snapshot.

Request Lenses

createInstanceSnapshot_tags :: Lens' CreateInstanceSnapshot (Maybe [Tag]) Source #

The tag keys and optional values to add to the resource during create.

Use the TagResource action to tag a resource after it's created.

createInstanceSnapshot_instanceName :: Lens' CreateInstanceSnapshot Text Source #

The Lightsail instance on which to base your snapshot.

Destructuring the Response

data CreateInstanceSnapshotResponse Source #

See: newCreateInstanceSnapshotResponse smart constructor.

Constructors

CreateInstanceSnapshotResponse' 

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 CreateInstanceSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateInstanceSnapshot

Read CreateInstanceSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateInstanceSnapshot

Show CreateInstanceSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateInstanceSnapshot

Generic CreateInstanceSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateInstanceSnapshot

Associated Types

type Rep CreateInstanceSnapshotResponse :: Type -> Type #

NFData CreateInstanceSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateInstanceSnapshot

type Rep CreateInstanceSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateInstanceSnapshot

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

newCreateInstanceSnapshotResponse Source #

Create a value of CreateInstanceSnapshotResponse 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:CreateInstanceSnapshotResponse', createInstanceSnapshotResponse_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:CreateInstanceSnapshotResponse', createInstanceSnapshotResponse_httpStatus - The response's http status code.

Response Lenses

createInstanceSnapshotResponse_operations :: Lens' CreateInstanceSnapshotResponse (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.