Struct aws_sdk_batch::types::AttemptTaskContainerDetails
source · #[non_exhaustive]pub struct AttemptTaskContainerDetails {
pub exit_code: Option<i32>,
pub name: Option<String>,
pub reason: Option<String>,
pub log_stream_name: Option<String>,
pub network_interfaces: Option<Vec<NetworkInterface>>,
}
Expand description
An object that represents the details of a container that's part of a job attempt.
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.exit_code: Option<i32>
The exit code for the container’s attempt. A non-zero exit code is considered failed.
name: Option<String>
The name of a container.
reason: Option<String>
A short (255 max characters) string that's easy to understand and provides additional details for a running or stopped container.
log_stream_name: Option<String>
The name of the Amazon CloudWatch Logs log stream that's associated with the container. The log group for Batch jobs is /aws/batch/job
. Each container attempt receives a log stream name when they reach the RUNNING
status.
network_interfaces: Option<Vec<NetworkInterface>>
The network interfaces that are associated with the job attempt.
Implementations§
source§impl AttemptTaskContainerDetails
impl AttemptTaskContainerDetails
sourcepub fn exit_code(&self) -> Option<i32>
pub fn exit_code(&self) -> Option<i32>
The exit code for the container’s attempt. A non-zero exit code is considered failed.
sourcepub fn reason(&self) -> Option<&str>
pub fn reason(&self) -> Option<&str>
A short (255 max characters) string that's easy to understand and provides additional details for a running or stopped container.
sourcepub fn log_stream_name(&self) -> Option<&str>
pub fn log_stream_name(&self) -> Option<&str>
The name of the Amazon CloudWatch Logs log stream that's associated with the container. The log group for Batch jobs is /aws/batch/job
. Each container attempt receives a log stream name when they reach the RUNNING
status.
sourcepub fn network_interfaces(&self) -> &[NetworkInterface]
pub fn network_interfaces(&self) -> &[NetworkInterface]
The network interfaces that are associated with the job attempt.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .network_interfaces.is_none()
.
source§impl AttemptTaskContainerDetails
impl AttemptTaskContainerDetails
sourcepub fn builder() -> AttemptTaskContainerDetailsBuilder
pub fn builder() -> AttemptTaskContainerDetailsBuilder
Creates a new builder-style object to manufacture AttemptTaskContainerDetails
.
Trait Implementations§
source§impl Clone for AttemptTaskContainerDetails
impl Clone for AttemptTaskContainerDetails
source§fn clone(&self) -> AttemptTaskContainerDetails
fn clone(&self) -> AttemptTaskContainerDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AttemptTaskContainerDetails
impl Debug for AttemptTaskContainerDetails
source§impl PartialEq for AttemptTaskContainerDetails
impl PartialEq for AttemptTaskContainerDetails
source§fn eq(&self, other: &AttemptTaskContainerDetails) -> bool
fn eq(&self, other: &AttemptTaskContainerDetails) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AttemptTaskContainerDetails
Auto Trait Implementations§
impl Freeze for AttemptTaskContainerDetails
impl RefUnwindSafe for AttemptTaskContainerDetails
impl Send for AttemptTaskContainerDetails
impl Sync for AttemptTaskContainerDetails
impl Unpin for AttemptTaskContainerDetails
impl UnwindSafe for AttemptTaskContainerDetails
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