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 |
Returns information about the blocks in an Amazon Elastic Block Store snapshot.
Synopsis
- data ListSnapshotBlocks = ListSnapshotBlocks' {}
- newListSnapshotBlocks :: Text -> ListSnapshotBlocks
- listSnapshotBlocks_nextToken :: Lens' ListSnapshotBlocks (Maybe Text)
- listSnapshotBlocks_startingBlockIndex :: Lens' ListSnapshotBlocks (Maybe Natural)
- listSnapshotBlocks_maxResults :: Lens' ListSnapshotBlocks (Maybe Natural)
- listSnapshotBlocks_snapshotId :: Lens' ListSnapshotBlocks Text
- data ListSnapshotBlocksResponse = ListSnapshotBlocksResponse' {}
- newListSnapshotBlocksResponse :: Int -> ListSnapshotBlocksResponse
- listSnapshotBlocksResponse_blockSize :: Lens' ListSnapshotBlocksResponse (Maybe Int)
- listSnapshotBlocksResponse_blocks :: Lens' ListSnapshotBlocksResponse (Maybe [Block])
- listSnapshotBlocksResponse_expiryTime :: Lens' ListSnapshotBlocksResponse (Maybe UTCTime)
- listSnapshotBlocksResponse_volumeSize :: Lens' ListSnapshotBlocksResponse (Maybe Natural)
- listSnapshotBlocksResponse_nextToken :: Lens' ListSnapshotBlocksResponse (Maybe Text)
- listSnapshotBlocksResponse_httpStatus :: Lens' ListSnapshotBlocksResponse Int
Creating a Request
data ListSnapshotBlocks Source #
See: newListSnapshotBlocks
smart constructor.
ListSnapshotBlocks' | |
|
Instances
newListSnapshotBlocks Source #
Create a value of ListSnapshotBlocks
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:nextToken:ListSnapshotBlocks'
, listSnapshotBlocks_nextToken
- The token to request the next page of results.
$sel:startingBlockIndex:ListSnapshotBlocks'
, listSnapshotBlocks_startingBlockIndex
- The block index from which the list should start. The list in the
response will start from this block index or the next valid block index
in the snapshot.
$sel:maxResults:ListSnapshotBlocks'
, listSnapshotBlocks_maxResults
- The number of results to return.
$sel:snapshotId:ListSnapshotBlocks'
, listSnapshotBlocks_snapshotId
- The ID of the snapshot from which to get block indexes and block tokens.
Request Lenses
listSnapshotBlocks_nextToken :: Lens' ListSnapshotBlocks (Maybe Text) Source #
The token to request the next page of results.
listSnapshotBlocks_startingBlockIndex :: Lens' ListSnapshotBlocks (Maybe Natural) Source #
The block index from which the list should start. The list in the response will start from this block index or the next valid block index in the snapshot.
listSnapshotBlocks_maxResults :: Lens' ListSnapshotBlocks (Maybe Natural) Source #
The number of results to return.
listSnapshotBlocks_snapshotId :: Lens' ListSnapshotBlocks Text Source #
The ID of the snapshot from which to get block indexes and block tokens.
Destructuring the Response
data ListSnapshotBlocksResponse Source #
See: newListSnapshotBlocksResponse
smart constructor.
ListSnapshotBlocksResponse' | |
|
Instances
newListSnapshotBlocksResponse Source #
Create a value of ListSnapshotBlocksResponse
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:blockSize:ListSnapshotBlocksResponse'
, listSnapshotBlocksResponse_blockSize
- The size of the blocks in the snapshot, in bytes.
$sel:blocks:ListSnapshotBlocksResponse'
, listSnapshotBlocksResponse_blocks
- An array of objects containing information about the blocks.
$sel:expiryTime:ListSnapshotBlocksResponse'
, listSnapshotBlocksResponse_expiryTime
- The time when the BlockToken
expires.
$sel:volumeSize:ListSnapshotBlocksResponse'
, listSnapshotBlocksResponse_volumeSize
- The size of the volume in GB.
$sel:nextToken:ListSnapshotBlocks'
, listSnapshotBlocksResponse_nextToken
- The token to use to retrieve the next page of results. This value is
null when there are no more results to return.
$sel:httpStatus:ListSnapshotBlocksResponse'
, listSnapshotBlocksResponse_httpStatus
- The response's http status code.
Response Lenses
listSnapshotBlocksResponse_blockSize :: Lens' ListSnapshotBlocksResponse (Maybe Int) Source #
The size of the blocks in the snapshot, in bytes.
listSnapshotBlocksResponse_blocks :: Lens' ListSnapshotBlocksResponse (Maybe [Block]) Source #
An array of objects containing information about the blocks.
listSnapshotBlocksResponse_expiryTime :: Lens' ListSnapshotBlocksResponse (Maybe UTCTime) Source #
The time when the BlockToken
expires.
listSnapshotBlocksResponse_volumeSize :: Lens' ListSnapshotBlocksResponse (Maybe Natural) Source #
The size of the volume in GB.
listSnapshotBlocksResponse_nextToken :: Lens' ListSnapshotBlocksResponse (Maybe Text) Source #
The token to use to retrieve the next page of results. This value is null when there are no more results to return.
listSnapshotBlocksResponse_httpStatus :: Lens' ListSnapshotBlocksResponse Int Source #
The response's http status code.