class Aws::EBS::Types::PutSnapshotBlockRequest

@note When making an API call, you may pass PutSnapshotBlockRequest

data as a hash:

    {
      snapshot_id: "SnapshotId", # required
      block_index: 1, # required
      block_data: "data", # required
      data_length: 1, # required
      progress: 1,
      checksum: "Checksum", # required
      checksum_algorithm: "SHA256", # required, accepts SHA256
    }

@!attribute [rw] snapshot_id

The ID of the snapshot.
@return [String]

@!attribute [rw] block_index

The block index of the block in which to write the data. A block
index is a logical index in units of `512` KiB blocks. To identify
the block index, divide the logical offset of the data in the
logical volume by the block size (logical offset of data/`524288`).
The logical offset of the data must be `512` KiB aligned.
@return [Integer]

@!attribute [rw] block_data

The data to write to the block.

The block data is not signed as part of the Signature Version 4
signing process. As a result, you must generate and provide a
Base64-encoded SHA256 checksum for the block data using the
**x-amz-Checksum** header. Also, you must specify the checksum
algorithm using the **x-amz-Checksum-Algorithm** header. The
checksum that you provide is part of the Signature Version 4 signing
process. It is validated against a checksum generated by Amazon EBS
to ensure the validity and authenticity of the data. If the
checksums do not correspond, the request fails. For more
information, see [ Using checksums with the EBS direct APIs][1] in
the *Amazon Elastic Compute Cloud User Guide*.

[1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html#ebsapis-using-checksums
@return [IO]

@!attribute [rw] data_length

The size of the data to write to the block, in bytes. Currently, the
only supported size is `524288` bytes.

Valid values: `524288`
@return [Integer]

@!attribute [rw] progress

The progress of the write process, as a percentage.
@return [Integer]

@!attribute [rw] checksum

A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums
are supported.
@return [String]

@!attribute [rw] checksum_algorithm

The algorithm used to generate the checksum. Currently, the only
supported algorithm is `SHA256`.
@return [String]

@see docs.aws.amazon.com/goto/WebAPI/ebs-2019-11-02/PutSnapshotBlockRequest AWS API Documentation

Constants

SENSITIVE