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) -> Option<&[NetworkInterface]>
pub fn network_interfaces(&self) -> Option<&[NetworkInterface]>
The network interfaces that are associated with the job attempt.
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<AttemptContainerDetail> for AttemptContainerDetail
impl PartialEq<AttemptContainerDetail> 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 ==
.