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 PutSnapshotBlockCommandProtected

Writes a block of data to a snapshot. If the specified block contains data, the existing data is overwritten. The target snapshot must be in the pending state.

Data written to a snapshot must be aligned with 512-KiB sectors.

Example

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

import { EBSClient, PutSnapshotBlockCommand } from "@aws-sdk/client-ebs"; // ES Modules import
// const { EBSClient, PutSnapshotBlockCommand } = require("@aws-sdk/client-ebs"); // CommonJS import
const client = new EBSClient(config);
const input = { // PutSnapshotBlockRequest
SnapshotId: "STRING_VALUE", // required
BlockIndex: Number("int"), // required
BlockData: "STREAMING_BLOB_VALUE", // required
DataLength: Number("int"), // required
Progress: Number("int"),
Checksum: "STRING_VALUE", // required
ChecksumAlgorithm: "STRING_VALUE", // required
};
const command = new PutSnapshotBlockCommand(input);
const response = await client.send(command);
// { // PutSnapshotBlockResponse
// Checksum: "STRING_VALUE",
// ChecksumAlgorithm: "STRING_VALUE",
// };

Param

PutSnapshotBlockCommandInput

Returns

PutSnapshotBlockCommandOutput

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