Struct aws_sdk_ebs::input::PutSnapshotBlockInput [−][src]
#[non_exhaustive]pub struct PutSnapshotBlockInput {
pub snapshot_id: Option<String>,
pub block_index: Option<i32>,
pub block_data: ByteStream,
pub data_length: Option<i32>,
pub progress: Option<i32>,
pub checksum: Option<String>,
pub checksum_algorithm: Option<ChecksumAlgorithm>,
}Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.snapshot_id: Option<String>The ID of the snapshot.
block_index: Option<i32>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.
block_data: ByteStreamThe 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 in the Amazon Elastic Compute Cloud User Guide.
data_length: Option<i32>The size of the data to write to the block, in bytes. Currently, the only supported size is 524288 bytes.
Valid values: 524288
progress: Option<i32>The progress of the write process, as a percentage.
checksum: Option<String>A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are supported.
checksum_algorithm: Option<ChecksumAlgorithm>The algorithm used to generate the checksum. Currently, the only supported algorithm is SHA256.
Implementations
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<PutSnapshotBlock, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<PutSnapshotBlock, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<PutSnapshotBlock>
Creates a new builder-style object to manufacture PutSnapshotBlockInput
The ID of the snapshot.
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.
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 in the Amazon Elastic Compute Cloud User Guide.
The size of the data to write to the block, in bytes. Currently, the only supported size is 524288 bytes.
Valid values: 524288
A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are supported.
The algorithm used to generate the checksum. Currently, the only supported algorithm is SHA256.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for PutSnapshotBlockInput
impl Send for PutSnapshotBlockInput
impl Sync for PutSnapshotBlockInput
impl Unpin for PutSnapshotBlockInput
impl !UnwindSafe for PutSnapshotBlockInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
