ContainerDetail

Struct ContainerDetail 

Source
pub struct ContainerDetail {
Show 21 fields pub command: Option<Vec<String>>, pub container_instance_arn: Option<String>, pub environment: Option<Vec<KeyValuePair>>, pub exit_code: Option<i64>, pub image: Option<String>, pub instance_type: Option<String>, pub job_role_arn: Option<String>, pub linux_parameters: Option<LinuxParameters>, pub log_stream_name: Option<String>, pub memory: Option<i64>, pub mount_points: Option<Vec<MountPoint>>, pub network_interfaces: Option<Vec<NetworkInterface>>, pub privileged: Option<bool>, pub readonly_root_filesystem: Option<bool>, pub reason: Option<String>, pub resource_requirements: Option<Vec<ResourceRequirement>>, pub task_arn: Option<String>, pub ulimits: Option<Vec<Ulimit>>, pub user: Option<String>, pub vcpus: Option<i64>, pub volumes: Option<Vec<Volume>>,
}
Expand description

An object representing the details of a container that is part of a job.

Fields§

§command: Option<Vec<String>>

The command that is passed to the container.

§container_instance_arn: Option<String>

The Amazon Resource Name (ARN) of the container instance on which the container is running.

§environment: Option<Vec<KeyValuePair>>

The environment variables to pass to a container.

Environment variables must not start with AWS_BATCH; this naming convention is reserved for variables that are set by the AWS Batch service.

§exit_code: Option<i64>

The exit code to return upon completion.

§image: Option<String>

The image used to start the container.

§instance_type: Option<String>

The instance type of the underlying host infrastructure of a multi-node parallel job.

§job_role_arn: Option<String>

The Amazon Resource Name (ARN) associated with the job upon execution.

§linux_parameters: Option<LinuxParameters>

Linux-specific modifications that are applied to the container, such as details for device mappings.

§log_stream_name: Option<String>

The name of the CloudWatch Logs log stream associated with the container. The log group for AWS Batch jobs is /aws/batch/job. Each container attempt receives a log stream name when they reach the RUNNING status.

§memory: Option<i64>

The number of MiB of memory reserved for the job.

§mount_points: Option<Vec<MountPoint>>

The mount points for data volumes in your container.

§network_interfaces: Option<Vec<NetworkInterface>>

The network interfaces associated with the job.

§privileged: Option<bool>

When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user).

§readonly_root_filesystem: Option<bool>

When this parameter is true, the container is given read-only access to its root file system.

§reason: Option<String>

A short (255 max characters) human-readable string to provide additional details about a running or stopped container.

§resource_requirements: Option<Vec<ResourceRequirement>>

The type and amount of a resource to assign to a container. Currently, the only supported resource is GPU.

§task_arn: Option<String>

The Amazon Resource Name (ARN) of the Amazon ECS task that is associated with the container job. Each container attempt receives a task ARN when they reach the STARTING status.

§ulimits: Option<Vec<Ulimit>>

A list of ulimit values to set in the container.

§user: Option<String>

The user name to use inside the container.

§vcpus: Option<i64>

The number of VCPUs allocated for the job.

§volumes: Option<Vec<Volume>>

A list of volumes associated with the job.

Trait Implementations§

Source§

impl Clone for ContainerDetail

Source§

fn clone(&self) -> ContainerDetail

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ContainerDetail

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ContainerDetail

Source§

fn default() -> ContainerDetail

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ContainerDetail

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for ContainerDetail

Source§

fn eq(&self, other: &ContainerDetail) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for ContainerDetail

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,