Struct aws_sdk_securityhub::types::ContainerDetails
source · #[non_exhaustive]pub struct ContainerDetails {
pub container_runtime: Option<String>,
pub name: Option<String>,
pub image_id: Option<String>,
pub image_name: Option<String>,
pub launched_at: Option<String>,
pub volume_mounts: Option<Vec<VolumeMount>>,
pub privileged: Option<bool>,
}
Expand description
Container details related to a finding.
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.container_runtime: Option<String>
The runtime of the container.
name: Option<String>
The name of the container related to a finding.
image_id: Option<String>
The identifier of the container image related to a finding.
image_name: Option<String>
The name of the container image related to a finding.
launched_at: Option<String>
Indicates when the container started.
This field accepts only the specified formats. Timestamps can end with Z
or ("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
-
YYYY-MM-DDTHH:MM:SSZ
(for example,2019-01-31T23:00:00Z
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example,2019-01-31T23:00:00.123456789Z
) -
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example,2024-01-04T15:25:10+17:59
) -
YYYY-MM-DDTHH:MM:SS-HHMM
(for example,2024-01-04T15:25:10-1759
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,2024-01-04T15:25:10.123456789+17:59
)
volume_mounts: Option<Vec<VolumeMount>>
Provides information about the mounting of a volume in a container.
privileged: Option<bool>
When this parameter is true
, the container is given elevated privileges on the host container instance (similar to the root user).
Implementations§
source§impl ContainerDetails
impl ContainerDetails
sourcepub fn container_runtime(&self) -> Option<&str>
pub fn container_runtime(&self) -> Option<&str>
The runtime of the container.
sourcepub fn image_id(&self) -> Option<&str>
pub fn image_id(&self) -> Option<&str>
The identifier of the container image related to a finding.
sourcepub fn image_name(&self) -> Option<&str>
pub fn image_name(&self) -> Option<&str>
The name of the container image related to a finding.
sourcepub fn launched_at(&self) -> Option<&str>
pub fn launched_at(&self) -> Option<&str>
Indicates when the container started.
This field accepts only the specified formats. Timestamps can end with Z
or ("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
-
YYYY-MM-DDTHH:MM:SSZ
(for example,2019-01-31T23:00:00Z
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example,2019-01-31T23:00:00.123456789Z
) -
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example,2024-01-04T15:25:10+17:59
) -
YYYY-MM-DDTHH:MM:SS-HHMM
(for example,2024-01-04T15:25:10-1759
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,2024-01-04T15:25:10.123456789+17:59
)
sourcepub fn volume_mounts(&self) -> &[VolumeMount]
pub fn volume_mounts(&self) -> &[VolumeMount]
Provides information about the mounting of a volume in a container.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .volume_mounts.is_none()
.
sourcepub fn privileged(&self) -> Option<bool>
pub fn privileged(&self) -> Option<bool>
When this parameter is true
, the container is given elevated privileges on the host container instance (similar to the root user).
source§impl ContainerDetails
impl ContainerDetails
sourcepub fn builder() -> ContainerDetailsBuilder
pub fn builder() -> ContainerDetailsBuilder
Creates a new builder-style object to manufacture ContainerDetails
.
Trait Implementations§
source§impl Clone for ContainerDetails
impl Clone for ContainerDetails
source§fn clone(&self) -> ContainerDetails
fn clone(&self) -> ContainerDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ContainerDetails
impl Debug for ContainerDetails
source§impl PartialEq for ContainerDetails
impl PartialEq for ContainerDetails
source§fn eq(&self, other: &ContainerDetails) -> bool
fn eq(&self, other: &ContainerDetails) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ContainerDetails
Auto Trait Implementations§
impl Freeze for ContainerDetails
impl RefUnwindSafe for ContainerDetails
impl Send for ContainerDetails
impl Sync for ContainerDetails
impl Unpin for ContainerDetails
impl UnwindSafe for ContainerDetails
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