amazonka-ds-1.1.0: Amazon Directory Service SDK.

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

Network.AWS.DirectoryService.CreateSnapshot

Contents

Description

Creates a snapshot of an existing directory.

You cannot take snapshots of extended or connected directories.

See: AWS API Reference for CreateSnapshot.

Synopsis

Creating a Request

createSnapshot Source

Creates a value of CreateSnapshot with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

csName :: Lens' CreateSnapshot (Maybe Text) Source

The descriptive name to apply to the snapshot.

csDirectoryId :: Lens' CreateSnapshot Text Source

The identifier of the directory to take a snapshot of.

Destructuring the Response

createSnapshotResponse Source

Creates a value of CreateSnapshotResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

csrsSnapshotId :: Lens' CreateSnapshotResponse (Maybe Text) Source

The identifier of the snapshot that was created.

csrsStatus :: Lens' CreateSnapshotResponse Int Source

The response status code.