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.
Protected
Returns the data in a block in an Amazon Elastic Block Store snapshot.
Use a bare-bones client and the command you need to make an API call.
import { EBSClient, GetSnapshotBlockCommand } from "@aws-sdk/client-ebs"; // ES Modules import// const { EBSClient, GetSnapshotBlockCommand } = require("@aws-sdk/client-ebs"); // CommonJS importconst client = new EBSClient(config);const input = { // GetSnapshotBlockRequest SnapshotId: "STRING_VALUE", // required BlockIndex: Number("int"), // required BlockToken: "STRING_VALUE", // required};const command = new GetSnapshotBlockCommand(input);const response = await client.send(command);// { // GetSnapshotBlockResponse// DataLength: Number("int"),// BlockData: "STREAMING_BLOB_VALUE",// Checksum: "STRING_VALUE",// ChecksumAlgorithm: "STRING_VALUE",// };
GetSnapshotBlockCommandInput
GetSnapshotBlockCommandOutput
input
response
config
AccessDeniedException (client fault)
You do not have sufficient access to perform this action.
InternalServerException (server fault)
An internal error has occurred.
RequestThrottledException (client fault)
The number of API requests has exceed the maximum allowed API request throttling limit.
ResourceNotFoundException (client fault)
The specified resource does not exist.
ServiceQuotaExceededException (client fault)
Your current service quotas do not allow you to perform this action.
ValidationException (client fault)
The input fails to satisfy the constraints of the EBS direct APIs.
EBSServiceException
Base exception class for all service exceptions from EBS service.
Readonly
Static
Returns the data in a block in an Amazon Elastic Block Store snapshot.
Example
Use a bare-bones client and the command you need to make an API call.
Param
GetSnapshotBlockCommandInput
Returns
GetSnapshotBlockCommandOutput
See
input
shape.response
shape.config
shape.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.