#[non_exhaustive]
pub struct JobDetail { /* private fields */ }
Expand description

An object that represents an Batch job.

Implementations§

source§

impl JobDetail

source

pub fn job_arn(&self) -> Option<&str>

The Amazon Resource Name (ARN) of the job.

source

pub fn job_name(&self) -> Option<&str>

The job name.

source

pub fn job_id(&self) -> Option<&str>

The job ID.

source

pub fn job_queue(&self) -> Option<&str>

The Amazon Resource Name (ARN) of the job queue that the job is associated with.

source

pub fn status(&self) -> Option<&JobStatus>

The current status for the job.

If your jobs don't progress to STARTING, see Jobs stuck in RUNNABLE status in the troubleshooting section of the Batch User Guide.

source

pub fn share_identifier(&self) -> Option<&str>

The share identifier for the job.

source

pub fn scheduling_priority(&self) -> Option<i32>

The scheduling policy of the job definition. This only affects jobs in job queues with a fair share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling priority.

source

pub fn attempts(&self) -> Option<&[AttemptDetail]>

A list of job attempts that are associated with this job.

source

pub fn status_reason(&self) -> Option<&str>

A short, human-readable string to provide more details for the current status of the job.

source

pub fn created_at(&self) -> Option<i64>

The Unix timestamp (in milliseconds) for when the job was created. For non-array jobs and parent array jobs, this is when the job entered the SUBMITTED state. This is specifically at the time SubmitJob was called. For array child jobs, this is when the child job was spawned by its parent and entered the PENDING state.

source

pub fn retry_strategy(&self) -> Option<&RetryStrategy>

The retry strategy to use for this job if an attempt fails.

source

pub fn started_at(&self) -> Option<i64>

The Unix timestamp (in milliseconds) for when the job was started. More specifically, it's when the job transitioned from the STARTING state to the RUNNING state. This parameter isn't provided for child jobs of array jobs or multi-node parallel jobs.

source

pub fn stopped_at(&self) -> Option<i64>

The Unix timestamp (in milliseconds) for when the job was stopped. More specifically, it's when the job transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED.

source

pub fn depends_on(&self) -> Option<&[JobDependency]>

A list of job IDs that this job depends on.

source

pub fn job_definition(&self) -> Option<&str>

The Amazon Resource Name (ARN) of the job definition that this job uses.

source

pub fn parameters(&self) -> Option<&HashMap<String, String>>

Additional parameters that are passed to the job that replace parameter substitution placeholders or override any corresponding parameter defaults from the job definition.

source

pub fn container(&self) -> Option<&ContainerDetail>

An object that represents the details for the container that's associated with the job.

source

pub fn node_details(&self) -> Option<&NodeDetails>

An object that represents the details of a node that's associated with a multi-node parallel job.

source

pub fn node_properties(&self) -> Option<&NodeProperties>

An object that represents the node properties of a multi-node parallel job.

This isn't applicable to jobs that are running on Fargate resources.

source

pub fn array_properties(&self) -> Option<&ArrayPropertiesDetail>

The array properties of the job, if it's an array job.

source

pub fn timeout(&self) -> Option<&JobTimeout>

The timeout configuration for the job.

source

pub fn tags(&self) -> Option<&HashMap<String, String>>

The tags that are applied to the job.

source

pub fn propagate_tags(&self) -> Option<bool>

Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks when the tasks are created. For tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags from the job and job definition is over 50, the job is moved to the FAILED state.

source

pub fn platform_capabilities(&self) -> Option<&[PlatformCapability]>

The platform capabilities required by the job definition. If no value is specified, it defaults to EC2. Jobs run on Fargate resources specify FARGATE.

source

pub fn eks_properties(&self) -> Option<&EksPropertiesDetail>

An object with various properties that are specific to Amazon EKS based jobs. Only one of container, eksProperties, or nodeDetails is specified.

source

pub fn eks_attempts(&self) -> Option<&[EksAttemptDetail]>

A list of job attempts that are associated with this job.

source

pub fn is_cancelled(&self) -> Option<bool>

Indicates whether the job is canceled.

source

pub fn is_terminated(&self) -> Option<bool>

Indicates whether the job is terminated.

source§

impl JobDetail

source

pub fn builder() -> JobDetailBuilder

Creates a new builder-style object to manufacture JobDetail.

Trait Implementations§

source§

impl Clone for JobDetail

source§

fn clone(&self) -> JobDetail

Returns a copy 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 JobDetail

source§

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

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

impl PartialEq<JobDetail> for JobDetail

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for JobDetail

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · 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, U> Into<U> for Twhere U: From<T>,

const: unstable · 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<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · 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