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 the blocks in an Amazon Elastic Block Store snapshot.
Synopsis
- data ListSnapshotBlocks = ListSnapshotBlocks' {}
- newListSnapshotBlocks :: Text -> ListSnapshotBlocks
- listSnapshotBlocks_maxResults :: Lens' ListSnapshotBlocks (Maybe Natural)
- listSnapshotBlocks_nextToken :: Lens' ListSnapshotBlocks (Maybe Text)
- listSnapshotBlocks_startingBlockIndex :: 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_nextToken :: Lens' ListSnapshotBlocksResponse (Maybe Text)
- listSnapshotBlocksResponse_volumeSize :: Lens' ListSnapshotBlocksResponse (Maybe Natural)
- 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:maxResults:ListSnapshotBlocks'
, listSnapshotBlocks_maxResults
- The maximum number of blocks to be returned by the request.
Even if additional blocks can be retrieved from the snapshot, the request can return less blocks than MaxResults or an empty array of blocks.
To retrieve the next set of blocks from the snapshot, make another
request with the returned NextToken value. The value of
NextToken is null
when there are no more blocks to return.
ListSnapshotBlocks
, listSnapshotBlocks_nextToken
- The token to request the next page of results.
If you specify NextToken, then StartingBlockIndex is ignored.
$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.
If you specify NextToken, then StartingBlockIndex is ignored.
$sel:snapshotId:ListSnapshotBlocks'
, listSnapshotBlocks_snapshotId
- The ID of the snapshot from which to get block indexes and block tokens.
Request Lenses
listSnapshotBlocks_maxResults :: Lens' ListSnapshotBlocks (Maybe Natural) Source #
The maximum number of blocks to be returned by the request.
Even if additional blocks can be retrieved from the snapshot, the request can return less blocks than MaxResults or an empty array of blocks.
To retrieve the next set of blocks from the snapshot, make another
request with the returned NextToken value. The value of
NextToken is null
when there are no more blocks to return.
listSnapshotBlocks_nextToken :: Lens' ListSnapshotBlocks (Maybe Text) Source #
The token to request the next page of results.
If you specify NextToken, then StartingBlockIndex is ignored.
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.
If you specify NextToken, then StartingBlockIndex is ignored.
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.
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:volumeSize:ListSnapshotBlocksResponse'
, listSnapshotBlocksResponse_volumeSize
- The size of the volume in GB.
$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_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_volumeSize :: Lens' ListSnapshotBlocksResponse (Maybe Natural) Source #
The size of the volume in GB.
listSnapshotBlocksResponse_httpStatus :: Lens' ListSnapshotBlocksResponse Int Source #
The response's http status code.