amazonka-ebs-2.0: Amazon Elastic Block Store SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EBS.ListSnapshotBlocks

Description

Returns information about the blocks in an Amazon Elastic Block Store snapshot.

Synopsis

Creating a Request

data ListSnapshotBlocks Source #

See: newListSnapshotBlocks smart constructor.

Constructors

ListSnapshotBlocks' 

Fields

  • maxResults :: Maybe Natural

    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.

  • nextToken :: Maybe Text

    The token to request the next page of results.

    If you specify NextToken, then StartingBlockIndex is ignored.

  • startingBlockIndex :: Maybe Natural

    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.

  • snapshotId :: Text

    The ID of the snapshot from which to get block indexes and block tokens.

Instances

Instances details
ToHeaders ListSnapshotBlocks Source # 
Instance details

Defined in Amazonka.EBS.ListSnapshotBlocks

ToPath ListSnapshotBlocks Source # 
Instance details

Defined in Amazonka.EBS.ListSnapshotBlocks

ToQuery ListSnapshotBlocks Source # 
Instance details

Defined in Amazonka.EBS.ListSnapshotBlocks

AWSRequest ListSnapshotBlocks Source # 
Instance details

Defined in Amazonka.EBS.ListSnapshotBlocks

Associated Types

type AWSResponse ListSnapshotBlocks #

Generic ListSnapshotBlocks Source # 
Instance details

Defined in Amazonka.EBS.ListSnapshotBlocks

Associated Types

type Rep ListSnapshotBlocks :: Type -> Type #

Read ListSnapshotBlocks Source # 
Instance details

Defined in Amazonka.EBS.ListSnapshotBlocks

Show ListSnapshotBlocks Source # 
Instance details

Defined in Amazonka.EBS.ListSnapshotBlocks

NFData ListSnapshotBlocks Source # 
Instance details

Defined in Amazonka.EBS.ListSnapshotBlocks

Methods

rnf :: ListSnapshotBlocks -> () #

Eq ListSnapshotBlocks Source # 
Instance details

Defined in Amazonka.EBS.ListSnapshotBlocks

Hashable ListSnapshotBlocks Source # 
Instance details

Defined in Amazonka.EBS.ListSnapshotBlocks

type AWSResponse ListSnapshotBlocks Source # 
Instance details

Defined in Amazonka.EBS.ListSnapshotBlocks

type Rep ListSnapshotBlocks Source # 
Instance details

Defined in Amazonka.EBS.ListSnapshotBlocks

type Rep ListSnapshotBlocks = D1 ('MetaData "ListSnapshotBlocks" "Amazonka.EBS.ListSnapshotBlocks" "amazonka-ebs-2.0-64shgDr10jT2ab25iSOcZ1" 'False) (C1 ('MetaCons "ListSnapshotBlocks'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "startingBlockIndex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "snapshotId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

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.

Constructors

ListSnapshotBlocksResponse' 

Fields

Instances

Instances details
Generic ListSnapshotBlocksResponse Source # 
Instance details

Defined in Amazonka.EBS.ListSnapshotBlocks

Associated Types

type Rep ListSnapshotBlocksResponse :: Type -> Type #

Show ListSnapshotBlocksResponse Source # 
Instance details

Defined in Amazonka.EBS.ListSnapshotBlocks

NFData ListSnapshotBlocksResponse Source # 
Instance details

Defined in Amazonka.EBS.ListSnapshotBlocks

Eq ListSnapshotBlocksResponse Source # 
Instance details

Defined in Amazonka.EBS.ListSnapshotBlocks

type Rep ListSnapshotBlocksResponse Source # 
Instance details

Defined in Amazonka.EBS.ListSnapshotBlocks

type Rep ListSnapshotBlocksResponse = D1 ('MetaData "ListSnapshotBlocksResponse" "Amazonka.EBS.ListSnapshotBlocks" "amazonka-ebs-2.0-64shgDr10jT2ab25iSOcZ1" 'False) (C1 ('MetaCons "ListSnapshotBlocksResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "blockSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "blocks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive [Block]))) :*: S1 ('MetaSel ('Just "expiryTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "volumeSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

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_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.