Struct aws_sdk_ec2::types::InstanceSpecification
source · #[non_exhaustive]pub struct InstanceSpecification {
pub instance_id: Option<String>,
pub exclude_boot_volume: Option<bool>,
pub exclude_data_volume_ids: Option<Vec<String>>,
}
Expand description
The instance details to specify which volumes should be snapshotted.
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.instance_id: Option<String>
The instance to specify which volumes should be snapshotted.
exclude_boot_volume: Option<bool>
Excludes the root volume from being snapshotted.
exclude_data_volume_ids: Option<Vec<String>>
The IDs of the data (non-root) volumes to exclude from the multi-volume snapshot set. If you specify the ID of the root volume, the request fails. To exclude the root volume, use ExcludeBootVolume.
You can specify up to 40 volume IDs per request.
Implementations§
source§impl InstanceSpecification
impl InstanceSpecification
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The instance to specify which volumes should be snapshotted.
sourcepub fn exclude_boot_volume(&self) -> Option<bool>
pub fn exclude_boot_volume(&self) -> Option<bool>
Excludes the root volume from being snapshotted.
sourcepub fn exclude_data_volume_ids(&self) -> &[String]
pub fn exclude_data_volume_ids(&self) -> &[String]
The IDs of the data (non-root) volumes to exclude from the multi-volume snapshot set. If you specify the ID of the root volume, the request fails. To exclude the root volume, use ExcludeBootVolume.
You can specify up to 40 volume IDs per request.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .exclude_data_volume_ids.is_none()
.
source§impl InstanceSpecification
impl InstanceSpecification
sourcepub fn builder() -> InstanceSpecificationBuilder
pub fn builder() -> InstanceSpecificationBuilder
Creates a new builder-style object to manufacture InstanceSpecification
.
Trait Implementations§
source§impl Clone for InstanceSpecification
impl Clone for InstanceSpecification
source§fn clone(&self) -> InstanceSpecification
fn clone(&self) -> InstanceSpecification
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceSpecification
impl Debug for InstanceSpecification
source§impl PartialEq for InstanceSpecification
impl PartialEq for InstanceSpecification
source§fn eq(&self, other: &InstanceSpecification) -> bool
fn eq(&self, other: &InstanceSpecification) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceSpecification
Auto Trait Implementations§
impl Freeze for InstanceSpecification
impl RefUnwindSafe for InstanceSpecification
impl Send for InstanceSpecification
impl Sync for InstanceSpecification
impl Unpin for InstanceSpecification
impl UnwindSafe for InstanceSpecification
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