Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Returns information about a specific snapshot.
Synopsis
- data GetSnapshot = GetSnapshot' {}
- newGetSnapshot :: GetSnapshot
- getSnapshot_ownerAccount :: Lens' GetSnapshot (Maybe Text)
- getSnapshot_snapshotArn :: Lens' GetSnapshot (Maybe Text)
- getSnapshot_snapshotName :: Lens' GetSnapshot (Maybe Text)
- data GetSnapshotResponse = GetSnapshotResponse' {
- snapshot :: Maybe Snapshot
- httpStatus :: Int
- newGetSnapshotResponse :: Int -> GetSnapshotResponse
- getSnapshotResponse_snapshot :: Lens' GetSnapshotResponse (Maybe Snapshot)
- getSnapshotResponse_httpStatus :: Lens' GetSnapshotResponse Int
Creating a Request
data GetSnapshot Source #
See: newGetSnapshot
smart constructor.
GetSnapshot' | |
|
Instances
newGetSnapshot :: GetSnapshot Source #
Create a value of GetSnapshot
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:
GetSnapshot
, getSnapshot_ownerAccount
- The owner Amazon Web Services account of a snapshot shared with another
user.
GetSnapshot
, getSnapshot_snapshotArn
- The Amazon Resource Name (ARN) of the snapshot to return.
GetSnapshot
, getSnapshot_snapshotName
- The name of the snapshot to return.
Request Lenses
getSnapshot_ownerAccount :: Lens' GetSnapshot (Maybe Text) Source #
The owner Amazon Web Services account of a snapshot shared with another user.
getSnapshot_snapshotArn :: Lens' GetSnapshot (Maybe Text) Source #
The Amazon Resource Name (ARN) of the snapshot to return.
getSnapshot_snapshotName :: Lens' GetSnapshot (Maybe Text) Source #
The name of the snapshot to return.
Destructuring the Response
data GetSnapshotResponse Source #
See: newGetSnapshotResponse
smart constructor.
GetSnapshotResponse' | |
|
Instances
newGetSnapshotResponse Source #
Create a value of GetSnapshotResponse
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:snapshot:GetSnapshotResponse'
, getSnapshotResponse_snapshot
- The returned snapshot object.
$sel:httpStatus:GetSnapshotResponse'
, getSnapshotResponse_httpStatus
- The response's http status code.
Response Lenses
getSnapshotResponse_snapshot :: Lens' GetSnapshotResponse (Maybe Snapshot) Source #
The returned snapshot object.
getSnapshotResponse_httpStatus :: Lens' GetSnapshotResponse Int Source #
The response's http status code.