#[non_exhaustive]pub struct GetSnapshotBlockInput {
pub snapshot_id: Option<String>,
pub block_index: Option<i32>,
pub block_token: Option<String>,
}
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 containing the block from which to get data.
If the specified snapshot is encrypted, you must have permission to use the KMS key that was used to encrypt the snapshot. For more information, see Using encryption in the Amazon Elastic Compute Cloud User Guide.
block_index: Option<i32>
The block index of the block in which to read 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_token: Option<String>
The block token of the block from which to get data. You can obtain the BlockToken
by running the ListChangedBlocks
or ListSnapshotBlocks
operations.
Implementations§
source§impl GetSnapshotBlockInput
impl GetSnapshotBlockInput
sourcepub fn snapshot_id(&self) -> Option<&str>
pub fn snapshot_id(&self) -> Option<&str>
The ID of the snapshot containing the block from which to get data.
If the specified snapshot is encrypted, you must have permission to use the KMS key that was used to encrypt the snapshot. For more information, see Using encryption in the Amazon Elastic Compute Cloud User Guide.
sourcepub fn block_index(&self) -> Option<i32>
pub fn block_index(&self) -> Option<i32>
The block index of the block in which to read 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.
sourcepub fn block_token(&self) -> Option<&str>
pub fn block_token(&self) -> Option<&str>
The block token of the block from which to get data. You can obtain the BlockToken
by running the ListChangedBlocks
or ListSnapshotBlocks
operations.
source§impl GetSnapshotBlockInput
impl GetSnapshotBlockInput
sourcepub fn builder() -> GetSnapshotBlockInputBuilder
pub fn builder() -> GetSnapshotBlockInputBuilder
Creates a new builder-style object to manufacture GetSnapshotBlockInput
.
Trait Implementations§
source§impl Clone for GetSnapshotBlockInput
impl Clone for GetSnapshotBlockInput
source§fn clone(&self) -> GetSnapshotBlockInput
fn clone(&self) -> GetSnapshotBlockInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetSnapshotBlockInput
impl Debug for GetSnapshotBlockInput
source§impl PartialEq for GetSnapshotBlockInput
impl PartialEq for GetSnapshotBlockInput
source§fn eq(&self, other: &GetSnapshotBlockInput) -> bool
fn eq(&self, other: &GetSnapshotBlockInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetSnapshotBlockInput
Auto Trait Implementations§
impl Freeze for GetSnapshotBlockInput
impl RefUnwindSafe for GetSnapshotBlockInput
impl Send for GetSnapshotBlockInput
impl Sync for GetSnapshotBlockInput
impl Unpin for GetSnapshotBlockInput
impl UnwindSafe for GetSnapshotBlockInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more