libZSservicesZSamazonka-dsZSamazonka-ds
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.DirectoryService.RestoreFromSnapshot

Description

Restores a directory using an existing directory snapshot.

When you restore a directory from a snapshot, any changes made to the directory after the snapshot date are overwritten.

This action returns as soon as the restore operation is initiated. You can monitor the progress of the restore operation by calling the DescribeDirectories operation with the directory identifier. When the DirectoryDescription.Stage value changes to Active, the restore operation is complete.

Synopsis

Creating a Request

data RestoreFromSnapshot Source #

An object representing the inputs for the RestoreFromSnapshot operation.

See: newRestoreFromSnapshot smart constructor.

Constructors

RestoreFromSnapshot' 

Fields

Instances

Instances details
Eq RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.DirectoryService.RestoreFromSnapshot

Read RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.DirectoryService.RestoreFromSnapshot

Show RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.DirectoryService.RestoreFromSnapshot

Generic RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.DirectoryService.RestoreFromSnapshot

Associated Types

type Rep RestoreFromSnapshot :: Type -> Type #

NFData RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.DirectoryService.RestoreFromSnapshot

Methods

rnf :: RestoreFromSnapshot -> () #

Hashable RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.DirectoryService.RestoreFromSnapshot

ToJSON RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.DirectoryService.RestoreFromSnapshot

AWSRequest RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.DirectoryService.RestoreFromSnapshot

Associated Types

type AWSResponse RestoreFromSnapshot #

ToHeaders RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.DirectoryService.RestoreFromSnapshot

ToPath RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.DirectoryService.RestoreFromSnapshot

ToQuery RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.DirectoryService.RestoreFromSnapshot

type Rep RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.DirectoryService.RestoreFromSnapshot

type Rep RestoreFromSnapshot = D1 ('MetaData "RestoreFromSnapshot" "Amazonka.DirectoryService.RestoreFromSnapshot" "libZSservicesZSamazonka-dsZSamazonka-ds" 'False) (C1 ('MetaCons "RestoreFromSnapshot'" 'PrefixI 'True) (S1 ('MetaSel ('Just "snapshotId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse RestoreFromSnapshot Source # 
Instance details

Defined in Amazonka.DirectoryService.RestoreFromSnapshot

newRestoreFromSnapshot Source #

Create a value of RestoreFromSnapshot 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:snapshotId:RestoreFromSnapshot', restoreFromSnapshot_snapshotId - The identifier of the snapshot to restore from.

Request Lenses

restoreFromSnapshot_snapshotId :: Lens' RestoreFromSnapshot Text Source #

The identifier of the snapshot to restore from.

Destructuring the Response

data RestoreFromSnapshotResponse Source #

Contains the results of the RestoreFromSnapshot operation.

See: newRestoreFromSnapshotResponse smart constructor.

Constructors

RestoreFromSnapshotResponse' 

Fields

Instances

Instances details
Eq RestoreFromSnapshotResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.RestoreFromSnapshot

Read RestoreFromSnapshotResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.RestoreFromSnapshot

Show RestoreFromSnapshotResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.RestoreFromSnapshot

Generic RestoreFromSnapshotResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.RestoreFromSnapshot

Associated Types

type Rep RestoreFromSnapshotResponse :: Type -> Type #

NFData RestoreFromSnapshotResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.RestoreFromSnapshot

type Rep RestoreFromSnapshotResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.RestoreFromSnapshot

type Rep RestoreFromSnapshotResponse = D1 ('MetaData "RestoreFromSnapshotResponse" "Amazonka.DirectoryService.RestoreFromSnapshot" "libZSservicesZSamazonka-dsZSamazonka-ds" 'False) (C1 ('MetaCons "RestoreFromSnapshotResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newRestoreFromSnapshotResponse Source #

Create a value of RestoreFromSnapshotResponse 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:httpStatus:RestoreFromSnapshotResponse', restoreFromSnapshotResponse_httpStatus - The response's http status code.

Response Lenses