Struct aws_sdk_batch::types::AttemptContainerDetail
source · #[non_exhaustive]pub struct AttemptContainerDetail {
pub container_instance_arn: Option<String>,
pub task_arn: Option<String>,
pub exit_code: Option<i32>,
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.container_instance_arn: Option<String>
The Amazon Resource Name (ARN) of the Amazon ECS container instance that hosts the job attempt.
task_arn: Option<String>
The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the job attempt. Each container attempt receives a task ARN when they reach the STARTING
status.
exit_code: Option<i32>
The exit code for the job attempt. A non-zero exit code is considered failed.
reason: Option<String>
A short (255 max characters) human-readable string to provide additional details for a running or stopped container.
log_stream_name: Option<String>
The name of the 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 AttemptContainerDetail
impl AttemptContainerDetail
sourcepub fn container_instance_arn(&self) -> Option<&str>
pub fn container_instance_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the Amazon ECS container instance that hosts the job attempt.
sourcepub fn task_arn(&self) -> Option<&str>
pub fn task_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the job attempt. Each container attempt receives a task ARN when they reach the STARTING
status.
sourcepub fn exit_code(&self) -> Option<i32>
pub fn exit_code(&self) -> Option<i32>
The exit code for the job 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) human-readable string to provide 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 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 AttemptContainerDetail
impl AttemptContainerDetail
sourcepub fn builder() -> AttemptContainerDetailBuilder
pub fn builder() -> AttemptContainerDetailBuilder
Creates a new builder-style object to manufacture AttemptContainerDetail
.
Trait Implementations§
source§impl Clone for AttemptContainerDetail
impl Clone for AttemptContainerDetail
source§fn clone(&self) -> AttemptContainerDetail
fn clone(&self) -> AttemptContainerDetail
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AttemptContainerDetail
impl Debug for AttemptContainerDetail
source§impl PartialEq for AttemptContainerDetail
impl PartialEq for AttemptContainerDetail
source§fn eq(&self, other: &AttemptContainerDetail) -> bool
fn eq(&self, other: &AttemptContainerDetail) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AttemptContainerDetail
Auto Trait Implementations§
impl Freeze for AttemptContainerDetail
impl RefUnwindSafe for AttemptContainerDetail
impl Send for AttemptContainerDetail
impl Sync for AttemptContainerDetail
impl Unpin for AttemptContainerDetail
impl UnwindSafe for AttemptContainerDetail
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