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

Description

Returns information about the blocks that are different between two Amazon Elastic Block Store snapshots of the same volume/snapshot lineage.

Synopsis

Creating a Request

data ListChangedBlocks Source #

See: newListChangedBlocks smart constructor.

Constructors

ListChangedBlocks' 

Fields

  • firstSnapshotId :: Maybe Text

    The ID of the first snapshot to use for the comparison.

    The FirstSnapshotID parameter must be specified with a SecondSnapshotId parameter; otherwise, an error occurs.

  • 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 comparison should start.

    The list in the response will start from this block index or the next valid block index in the snapshots.

    If you specify NextToken, then StartingBlockIndex is ignored.

  • secondSnapshotId :: Text

    The ID of the second snapshot to use for the comparison.

    The SecondSnapshotId parameter must be specified with a FirstSnapshotID parameter; otherwise, an error occurs.

Instances

Instances details
ToHeaders ListChangedBlocks Source # 
Instance details

Defined in Amazonka.EBS.ListChangedBlocks

ToPath ListChangedBlocks Source # 
Instance details

Defined in Amazonka.EBS.ListChangedBlocks

ToQuery ListChangedBlocks Source # 
Instance details

Defined in Amazonka.EBS.ListChangedBlocks

AWSRequest ListChangedBlocks Source # 
Instance details

Defined in Amazonka.EBS.ListChangedBlocks

Associated Types

type AWSResponse ListChangedBlocks #

Generic ListChangedBlocks Source # 
Instance details

Defined in Amazonka.EBS.ListChangedBlocks

Associated Types

type Rep ListChangedBlocks :: Type -> Type #

Read ListChangedBlocks Source # 
Instance details

Defined in Amazonka.EBS.ListChangedBlocks

Show ListChangedBlocks Source # 
Instance details

Defined in Amazonka.EBS.ListChangedBlocks

NFData ListChangedBlocks Source # 
Instance details

Defined in Amazonka.EBS.ListChangedBlocks

Methods

rnf :: ListChangedBlocks -> () #

Eq ListChangedBlocks Source # 
Instance details

Defined in Amazonka.EBS.ListChangedBlocks

Hashable ListChangedBlocks Source # 
Instance details

Defined in Amazonka.EBS.ListChangedBlocks

type AWSResponse ListChangedBlocks Source # 
Instance details

Defined in Amazonka.EBS.ListChangedBlocks

type Rep ListChangedBlocks Source # 
Instance details

Defined in Amazonka.EBS.ListChangedBlocks

type Rep ListChangedBlocks = D1 ('MetaData "ListChangedBlocks" "Amazonka.EBS.ListChangedBlocks" "amazonka-ebs-2.0-64shgDr10jT2ab25iSOcZ1" 'False) (C1 ('MetaCons "ListChangedBlocks'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "firstSnapshotId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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 "secondSnapshotId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newListChangedBlocks Source #

Create a value of ListChangedBlocks 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:firstSnapshotId:ListChangedBlocks', listChangedBlocks_firstSnapshotId - The ID of the first snapshot to use for the comparison.

The FirstSnapshotID parameter must be specified with a SecondSnapshotId parameter; otherwise, an error occurs.

$sel:maxResults:ListChangedBlocks', listChangedBlocks_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.

ListChangedBlocks, listChangedBlocks_nextToken - The token to request the next page of results.

If you specify NextToken, then StartingBlockIndex is ignored.

$sel:startingBlockIndex:ListChangedBlocks', listChangedBlocks_startingBlockIndex - The block index from which the comparison should start.

The list in the response will start from this block index or the next valid block index in the snapshots.

If you specify NextToken, then StartingBlockIndex is ignored.

$sel:secondSnapshotId:ListChangedBlocks', listChangedBlocks_secondSnapshotId - The ID of the second snapshot to use for the comparison.

The SecondSnapshotId parameter must be specified with a FirstSnapshotID parameter; otherwise, an error occurs.

Request Lenses

listChangedBlocks_firstSnapshotId :: Lens' ListChangedBlocks (Maybe Text) Source #

The ID of the first snapshot to use for the comparison.

The FirstSnapshotID parameter must be specified with a SecondSnapshotId parameter; otherwise, an error occurs.

listChangedBlocks_maxResults :: Lens' ListChangedBlocks (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.

listChangedBlocks_nextToken :: Lens' ListChangedBlocks (Maybe Text) Source #

The token to request the next page of results.

If you specify NextToken, then StartingBlockIndex is ignored.

listChangedBlocks_startingBlockIndex :: Lens' ListChangedBlocks (Maybe Natural) Source #

The block index from which the comparison should start.

The list in the response will start from this block index or the next valid block index in the snapshots.

If you specify NextToken, then StartingBlockIndex is ignored.

listChangedBlocks_secondSnapshotId :: Lens' ListChangedBlocks Text Source #

The ID of the second snapshot to use for the comparison.

The SecondSnapshotId parameter must be specified with a FirstSnapshotID parameter; otherwise, an error occurs.

Destructuring the Response

data ListChangedBlocksResponse Source #

See: newListChangedBlocksResponse smart constructor.

Constructors

ListChangedBlocksResponse' 

Fields

Instances

Instances details
Generic ListChangedBlocksResponse Source # 
Instance details

Defined in Amazonka.EBS.ListChangedBlocks

Associated Types

type Rep ListChangedBlocksResponse :: Type -> Type #

Show ListChangedBlocksResponse Source # 
Instance details

Defined in Amazonka.EBS.ListChangedBlocks

NFData ListChangedBlocksResponse Source # 
Instance details

Defined in Amazonka.EBS.ListChangedBlocks

Eq ListChangedBlocksResponse Source # 
Instance details

Defined in Amazonka.EBS.ListChangedBlocks

type Rep ListChangedBlocksResponse Source # 
Instance details

Defined in Amazonka.EBS.ListChangedBlocks

type Rep ListChangedBlocksResponse = D1 ('MetaData "ListChangedBlocksResponse" "Amazonka.EBS.ListChangedBlocks" "amazonka-ebs-2.0-64shgDr10jT2ab25iSOcZ1" 'False) (C1 ('MetaCons "ListChangedBlocksResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "blockSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "changedBlocks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Sensitive ChangedBlock])) :*: 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)))))

newListChangedBlocksResponse Source #

Create a value of ListChangedBlocksResponse 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:ListChangedBlocksResponse', listChangedBlocksResponse_blockSize - The size of the blocks in the snapshot, in bytes.

$sel:changedBlocks:ListChangedBlocksResponse', listChangedBlocksResponse_changedBlocks - An array of objects containing information about the changed blocks.

$sel:expiryTime:ListChangedBlocksResponse', listChangedBlocksResponse_expiryTime - The time when the BlockToken expires.

ListChangedBlocks, listChangedBlocksResponse_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:ListChangedBlocksResponse', listChangedBlocksResponse_volumeSize - The size of the volume in GB.

$sel:httpStatus:ListChangedBlocksResponse', listChangedBlocksResponse_httpStatus - The response's http status code.

Response Lenses

listChangedBlocksResponse_blockSize :: Lens' ListChangedBlocksResponse (Maybe Int) Source #

The size of the blocks in the snapshot, in bytes.

listChangedBlocksResponse_changedBlocks :: Lens' ListChangedBlocksResponse (Maybe [ChangedBlock]) Source #

An array of objects containing information about the changed blocks.

listChangedBlocksResponse_nextToken :: Lens' ListChangedBlocksResponse (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.