Struct aws_sdk_ebs::client::fluent_builders::PutSnapshotBlock
source ·
[−]pub struct PutSnapshotBlock<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to PutSnapshotBlock
.
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.
Implementations
impl<C, M, R> PutSnapshotBlock<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> PutSnapshotBlock<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<PutSnapshotBlockOutput, SdkError<PutSnapshotBlockError>> where
R::Policy: SmithyRetryPolicy<PutSnapshotBlockInputOperationOutputAlias, PutSnapshotBlockOutput, PutSnapshotBlockError, PutSnapshotBlockInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<PutSnapshotBlockOutput, SdkError<PutSnapshotBlockError>> where
R::Policy: SmithyRetryPolicy<PutSnapshotBlockInputOperationOutputAlias, PutSnapshotBlockOutput, PutSnapshotBlockError, PutSnapshotBlockInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The ID of the snapshot.
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 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 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
The size of the data to write to the block, in bytes. Currently, the only supported size is 524288
bytes.
Valid values: 524288
The progress of the write process, as a percentage.
A Base64-encoded SHA256 checksum of the data. Only SHA256 checksums are supported.
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
.
The algorithm used to generate the checksum. Currently, the only supported algorithm is SHA256
.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for PutSnapshotBlock<C, M, R>
impl<C, M, R> Send for PutSnapshotBlock<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for PutSnapshotBlock<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for PutSnapshotBlock<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for PutSnapshotBlock<C, M, R>
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