| 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 |
Amazonka.Lightsail.GetDiskSnapshot
Description
Returns information about a specific block storage disk snapshot.
Synopsis
- data GetDiskSnapshot = GetDiskSnapshot' {}
- newGetDiskSnapshot :: Text -> GetDiskSnapshot
- getDiskSnapshot_diskSnapshotName :: Lens' GetDiskSnapshot Text
- data GetDiskSnapshotResponse = GetDiskSnapshotResponse' {}
- newGetDiskSnapshotResponse :: Int -> GetDiskSnapshotResponse
- getDiskSnapshotResponse_diskSnapshot :: Lens' GetDiskSnapshotResponse (Maybe DiskSnapshot)
- getDiskSnapshotResponse_httpStatus :: Lens' GetDiskSnapshotResponse Int
Creating a Request
data GetDiskSnapshot Source #
See: newGetDiskSnapshot smart constructor.
Constructors
| GetDiskSnapshot' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetDiskSnapshot |
Create a value of GetDiskSnapshot 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:diskSnapshotName:GetDiskSnapshot', getDiskSnapshot_diskSnapshotName - The name of the disk snapshot (e.g., my-disk-snapshot).
Request Lenses
getDiskSnapshot_diskSnapshotName :: Lens' GetDiskSnapshot Text Source #
The name of the disk snapshot (e.g., my-disk-snapshot).
Destructuring the Response
data GetDiskSnapshotResponse Source #
See: newGetDiskSnapshotResponse smart constructor.
Constructors
| GetDiskSnapshotResponse' | |
Fields
| |
Instances
newGetDiskSnapshotResponse Source #
Create a value of GetDiskSnapshotResponse 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:diskSnapshot:GetDiskSnapshotResponse', getDiskSnapshotResponse_diskSnapshot - An object containing information about the disk snapshot.
$sel:httpStatus:GetDiskSnapshotResponse', getDiskSnapshotResponse_httpStatus - The response's http status code.
Response Lenses
getDiskSnapshotResponse_diskSnapshot :: Lens' GetDiskSnapshotResponse (Maybe DiskSnapshot) Source #
An object containing information about the disk snapshot.
getDiskSnapshotResponse_httpStatus :: Lens' GetDiskSnapshotResponse Int Source #
The response's http status code.