Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a snapshot of an existing directory.
You cannot take snapshots of extended or connected directories.
See: AWS API Reference for CreateSnapshot.
- createSnapshot :: Text -> CreateSnapshot
- data CreateSnapshot
- csName :: Lens' CreateSnapshot (Maybe Text)
- csDirectoryId :: Lens' CreateSnapshot Text
- createSnapshotResponse :: Int -> CreateSnapshotResponse
- data CreateSnapshotResponse
- csrsSnapshotId :: Lens' CreateSnapshotResponse (Maybe Text)
- csrsStatus :: Lens' CreateSnapshotResponse Int
Creating a Request
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:
data CreateSnapshot Source
Contains the inputs for the CreateSnapshot operation.
See: createSnapshot
smart constructor.
Request Lenses
csDirectoryId :: Lens' CreateSnapshot Text Source
The identifier of the directory to take a snapshot of.
Destructuring the Response
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:
data CreateSnapshotResponse Source
Contains the results of the CreateSnapshot operation.
See: createSnapshotResponse
smart constructor.
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.