Struct aws_sdk_ec2::types::EbsInstanceBlockDevice
source · #[non_exhaustive]pub struct EbsInstanceBlockDevice {
pub attach_time: Option<DateTime>,
pub delete_on_termination: Option<bool>,
pub status: Option<AttachmentStatus>,
pub volume_id: Option<String>,
pub associated_resource: Option<String>,
pub volume_owner_id: Option<String>,
}
Expand description
Describes a parameter used to set up an EBS volume in a block device mapping.
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.attach_time: Option<DateTime>
The time stamp when the attachment initiated.
delete_on_termination: Option<bool>
Indicates whether the volume is deleted on instance termination.
status: Option<AttachmentStatus>
The attachment state.
volume_id: Option<String>
The ID of the EBS volume.
associated_resource: Option<String>
The ARN of the Amazon ECS or Fargate task to which the volume is attached.
volume_owner_id: Option<String>
The ID of the Amazon Web Services account that owns the volume.
This parameter is returned only for volumes that are attached to Fargate tasks.
Implementations§
source§impl EbsInstanceBlockDevice
impl EbsInstanceBlockDevice
sourcepub fn attach_time(&self) -> Option<&DateTime>
pub fn attach_time(&self) -> Option<&DateTime>
The time stamp when the attachment initiated.
sourcepub fn delete_on_termination(&self) -> Option<bool>
pub fn delete_on_termination(&self) -> Option<bool>
Indicates whether the volume is deleted on instance termination.
sourcepub fn status(&self) -> Option<&AttachmentStatus>
pub fn status(&self) -> Option<&AttachmentStatus>
The attachment state.
sourcepub fn associated_resource(&self) -> Option<&str>
pub fn associated_resource(&self) -> Option<&str>
The ARN of the Amazon ECS or Fargate task to which the volume is attached.
sourcepub fn volume_owner_id(&self) -> Option<&str>
pub fn volume_owner_id(&self) -> Option<&str>
The ID of the Amazon Web Services account that owns the volume.
This parameter is returned only for volumes that are attached to Fargate tasks.
source§impl EbsInstanceBlockDevice
impl EbsInstanceBlockDevice
sourcepub fn builder() -> EbsInstanceBlockDeviceBuilder
pub fn builder() -> EbsInstanceBlockDeviceBuilder
Creates a new builder-style object to manufacture EbsInstanceBlockDevice
.
Trait Implementations§
source§impl Clone for EbsInstanceBlockDevice
impl Clone for EbsInstanceBlockDevice
source§fn clone(&self) -> EbsInstanceBlockDevice
fn clone(&self) -> EbsInstanceBlockDevice
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EbsInstanceBlockDevice
impl Debug for EbsInstanceBlockDevice
source§impl PartialEq for EbsInstanceBlockDevice
impl PartialEq for EbsInstanceBlockDevice
source§fn eq(&self, other: &EbsInstanceBlockDevice) -> bool
fn eq(&self, other: &EbsInstanceBlockDevice) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EbsInstanceBlockDevice
Auto Trait Implementations§
impl Freeze for EbsInstanceBlockDevice
impl RefUnwindSafe for EbsInstanceBlockDevice
impl Send for EbsInstanceBlockDevice
impl Sync for EbsInstanceBlockDevice
impl Unpin for EbsInstanceBlockDevice
impl UnwindSafe for EbsInstanceBlockDevice
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