Jump to Content

New API Documentation - Developer Preview Available

We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.

Class ListChangedBlocksCommandProtected

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

Example

Use a bare-bones client and the command you need to make an API call.

import { EBSClient, ListChangedBlocksCommand } from "@aws-sdk/client-ebs"; // ES Modules import
// const { EBSClient, ListChangedBlocksCommand } = require("@aws-sdk/client-ebs"); // CommonJS import
const client = new EBSClient(config);
const input = { // ListChangedBlocksRequest
FirstSnapshotId: "STRING_VALUE",
SecondSnapshotId: "STRING_VALUE", // required
NextToken: "STRING_VALUE",
MaxResults: Number("int"),
StartingBlockIndex: Number("int"),
};
const command = new ListChangedBlocksCommand(input);
const response = await client.send(command);
// { // ListChangedBlocksResponse
// ChangedBlocks: [ // ChangedBlocks
// { // ChangedBlock
// BlockIndex: Number("int"),
// FirstBlockToken: "STRING_VALUE",
// SecondBlockToken: "STRING_VALUE",
// },
// ],
// ExpiryTime: new Date("TIMESTAMP"),
// VolumeSize: Number("long"),
// BlockSize: Number("int"),
// NextToken: "STRING_VALUE",
// };

Param

ListChangedBlocksCommandInput

Returns

ListChangedBlocksCommandOutput

See

Throws

AccessDeniedException (client fault)

You do not have sufficient access to perform this action.

Throws

InternalServerException (server fault)

An internal error has occurred.

Throws

RequestThrottledException (client fault)

The number of API requests has exceed the maximum allowed API request throttling limit.

Throws

ResourceNotFoundException (client fault)

The specified resource does not exist.

Throws

ServiceQuotaExceededException (client fault)

Your current service quotas do not allow you to perform this action.

Throws

ValidationException (client fault)

The input fails to satisfy the constraints of the EBS direct APIs.

Throws

EBSServiceException

Base exception class for all service exceptions from EBS service.

Hierarchy

Constructors

Properties

Methods