Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a snapshot of a Simple AD or Microsoft AD directory in the Amazon Web Services cloud.
You cannot take snapshots of AD Connector directories.
Synopsis
- data CreateSnapshot = CreateSnapshot' {
- name :: Maybe Text
- directoryId :: Text
- newCreateSnapshot :: Text -> CreateSnapshot
- createSnapshot_name :: Lens' CreateSnapshot (Maybe Text)
- createSnapshot_directoryId :: Lens' CreateSnapshot Text
- data CreateSnapshotResponse = CreateSnapshotResponse' {
- snapshotId :: Maybe Text
- httpStatus :: Int
- newCreateSnapshotResponse :: Int -> CreateSnapshotResponse
- createSnapshotResponse_snapshotId :: Lens' CreateSnapshotResponse (Maybe Text)
- createSnapshotResponse_httpStatus :: Lens' CreateSnapshotResponse Int
Creating a Request
data CreateSnapshot Source #
Contains the inputs for the CreateSnapshot operation.
See: newCreateSnapshot
smart constructor.
CreateSnapshot' | |
|
Instances
Create a value of CreateSnapshot
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:name:CreateSnapshot'
, createSnapshot_name
- The descriptive name to apply to the snapshot.
$sel:directoryId:CreateSnapshot'
, createSnapshot_directoryId
- The identifier of the directory of which to take a snapshot.
Request Lenses
createSnapshot_name :: Lens' CreateSnapshot (Maybe Text) Source #
The descriptive name to apply to the snapshot.
createSnapshot_directoryId :: Lens' CreateSnapshot Text Source #
The identifier of the directory of which to take a snapshot.
Destructuring the Response
data CreateSnapshotResponse Source #
Contains the results of the CreateSnapshot operation.
See: newCreateSnapshotResponse
smart constructor.
CreateSnapshotResponse' | |
|
Instances
newCreateSnapshotResponse Source #
Create a value of CreateSnapshotResponse
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:CreateSnapshotResponse'
, createSnapshotResponse_snapshotId
- The identifier of the snapshot that was created.
$sel:httpStatus:CreateSnapshotResponse'
, createSnapshotResponse_httpStatus
- The response's http status code.
Response Lenses
createSnapshotResponse_snapshotId :: Lens' CreateSnapshotResponse (Maybe Text) Source #
The identifier of the snapshot that was created.
createSnapshotResponse_httpStatus :: Lens' CreateSnapshotResponse Int Source #
The response's http status code.