Struct aws_sdk_batch::types::builders::JobDetailBuilder
source · #[non_exhaustive]pub struct JobDetailBuilder { /* private fields */ }
Expand description
A builder for JobDetail
.
Implementations§
source§impl JobDetailBuilder
impl JobDetailBuilder
sourcepub fn job_arn(self, input: impl Into<String>) -> Self
pub fn job_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the job.
sourcepub fn set_job_arn(self, input: Option<String>) -> Self
pub fn set_job_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the job.
sourcepub fn set_job_name(self, input: Option<String>) -> Self
pub fn set_job_name(self, input: Option<String>) -> Self
The job name.
sourcepub fn set_job_id(self, input: Option<String>) -> Self
pub fn set_job_id(self, input: Option<String>) -> Self
The job ID.
sourcepub fn job_queue(self, input: impl Into<String>) -> Self
pub fn job_queue(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the job queue that the job is associated with.
sourcepub fn set_job_queue(self, input: Option<String>) -> Self
pub fn set_job_queue(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the job queue that the job is associated with.
sourcepub fn status(self, input: JobStatus) -> Self
pub fn status(self, input: JobStatus) -> Self
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.
sourcepub fn set_status(self, input: Option<JobStatus>) -> Self
pub fn set_status(self, input: Option<JobStatus>) -> Self
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.
The share identifier for the job.
The share identifier for the job.
sourcepub fn scheduling_priority(self, input: i32) -> Self
pub fn scheduling_priority(self, input: i32) -> Self
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.
sourcepub fn set_scheduling_priority(self, input: Option<i32>) -> Self
pub fn set_scheduling_priority(self, input: Option<i32>) -> Self
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.
sourcepub fn attempts(self, input: AttemptDetail) -> Self
pub fn attempts(self, input: AttemptDetail) -> Self
Appends an item to attempts
.
To override the contents of this collection use set_attempts
.
A list of job attempts that are associated with this job.
sourcepub fn set_attempts(self, input: Option<Vec<AttemptDetail>>) -> Self
pub fn set_attempts(self, input: Option<Vec<AttemptDetail>>) -> Self
A list of job attempts that are associated with this job.
sourcepub fn status_reason(self, input: impl Into<String>) -> Self
pub fn status_reason(self, input: impl Into<String>) -> Self
A short, human-readable string to provide more details for the current status of the job.
sourcepub fn set_status_reason(self, input: Option<String>) -> Self
pub fn set_status_reason(self, input: Option<String>) -> Self
A short, human-readable string to provide more details for the current status of the job.
sourcepub fn created_at(self, input: i64) -> Self
pub fn created_at(self, input: i64) -> Self
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.
sourcepub fn set_created_at(self, input: Option<i64>) -> Self
pub fn set_created_at(self, input: Option<i64>) -> Self
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.
sourcepub fn retry_strategy(self, input: RetryStrategy) -> Self
pub fn retry_strategy(self, input: RetryStrategy) -> Self
The retry strategy to use for this job if an attempt fails.
sourcepub fn set_retry_strategy(self, input: Option<RetryStrategy>) -> Self
pub fn set_retry_strategy(self, input: Option<RetryStrategy>) -> Self
The retry strategy to use for this job if an attempt fails.
sourcepub fn started_at(self, input: i64) -> Self
pub fn started_at(self, input: i64) -> Self
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.
sourcepub fn set_started_at(self, input: Option<i64>) -> Self
pub fn set_started_at(self, input: Option<i64>) -> Self
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.
sourcepub fn stopped_at(self, input: i64) -> Self
pub fn stopped_at(self, input: i64) -> Self
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
.
sourcepub fn set_stopped_at(self, input: Option<i64>) -> Self
pub fn set_stopped_at(self, input: Option<i64>) -> Self
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
.
sourcepub fn depends_on(self, input: JobDependency) -> Self
pub fn depends_on(self, input: JobDependency) -> Self
Appends an item to depends_on
.
To override the contents of this collection use set_depends_on
.
A list of job IDs that this job depends on.
sourcepub fn set_depends_on(self, input: Option<Vec<JobDependency>>) -> Self
pub fn set_depends_on(self, input: Option<Vec<JobDependency>>) -> Self
A list of job IDs that this job depends on.
sourcepub fn job_definition(self, input: impl Into<String>) -> Self
pub fn job_definition(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the job definition that this job uses.
sourcepub fn set_job_definition(self, input: Option<String>) -> Self
pub fn set_job_definition(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the job definition that this job uses.
sourcepub fn parameters(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn parameters(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to parameters
.
To override the contents of this collection use set_parameters
.
Additional parameters that are passed to the job that replace parameter substitution placeholders or override any corresponding parameter defaults from the job definition.
sourcepub fn set_parameters(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_parameters(self, input: Option<HashMap<String, String>>) -> Self
Additional parameters that are passed to the job that replace parameter substitution placeholders or override any corresponding parameter defaults from the job definition.
sourcepub fn container(self, input: ContainerDetail) -> Self
pub fn container(self, input: ContainerDetail) -> Self
An object that represents the details for the container that's associated with the job.
sourcepub fn set_container(self, input: Option<ContainerDetail>) -> Self
pub fn set_container(self, input: Option<ContainerDetail>) -> Self
An object that represents the details for the container that's associated with the job.
sourcepub fn node_details(self, input: NodeDetails) -> Self
pub fn node_details(self, input: NodeDetails) -> Self
An object that represents the details of a node that's associated with a multi-node parallel job.
sourcepub fn set_node_details(self, input: Option<NodeDetails>) -> Self
pub fn set_node_details(self, input: Option<NodeDetails>) -> Self
An object that represents the details of a node that's associated with a multi-node parallel job.
sourcepub fn node_properties(self, input: NodeProperties) -> Self
pub fn node_properties(self, input: NodeProperties) -> Self
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.
sourcepub fn set_node_properties(self, input: Option<NodeProperties>) -> Self
pub fn set_node_properties(self, input: Option<NodeProperties>) -> Self
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.
sourcepub fn array_properties(self, input: ArrayPropertiesDetail) -> Self
pub fn array_properties(self, input: ArrayPropertiesDetail) -> Self
The array properties of the job, if it's an array job.
sourcepub fn set_array_properties(self, input: Option<ArrayPropertiesDetail>) -> Self
pub fn set_array_properties(self, input: Option<ArrayPropertiesDetail>) -> Self
The array properties of the job, if it's an array job.
sourcepub fn timeout(self, input: JobTimeout) -> Self
pub fn timeout(self, input: JobTimeout) -> Self
The timeout configuration for the job.
sourcepub fn set_timeout(self, input: Option<JobTimeout>) -> Self
pub fn set_timeout(self, input: Option<JobTimeout>) -> Self
The timeout configuration for the job.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The tags that are applied to the job.
The tags that are applied to the job.
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.
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.
sourcepub fn platform_capabilities(self, input: PlatformCapability) -> Self
pub fn platform_capabilities(self, input: PlatformCapability) -> Self
Appends an item to platform_capabilities
.
To override the contents of this collection use set_platform_capabilities
.
The platform capabilities required by the job definition. If no value is specified, it defaults to EC2
. Jobs run on Fargate resources specify FARGATE
.
sourcepub fn set_platform_capabilities(
self,
input: Option<Vec<PlatformCapability>>
) -> Self
pub fn set_platform_capabilities( self, input: Option<Vec<PlatformCapability>> ) -> Self
The platform capabilities required by the job definition. If no value is specified, it defaults to EC2
. Jobs run on Fargate resources specify FARGATE
.
sourcepub fn eks_properties(self, input: EksPropertiesDetail) -> Self
pub fn eks_properties(self, input: EksPropertiesDetail) -> Self
An object with various properties that are specific to Amazon EKS based jobs. Only one of container
, eksProperties
, or nodeDetails
is specified.
sourcepub fn set_eks_properties(self, input: Option<EksPropertiesDetail>) -> Self
pub fn set_eks_properties(self, input: Option<EksPropertiesDetail>) -> Self
An object with various properties that are specific to Amazon EKS based jobs. Only one of container
, eksProperties
, or nodeDetails
is specified.
sourcepub fn eks_attempts(self, input: EksAttemptDetail) -> Self
pub fn eks_attempts(self, input: EksAttemptDetail) -> Self
Appends an item to eks_attempts
.
To override the contents of this collection use set_eks_attempts
.
A list of job attempts that are associated with this job.
sourcepub fn set_eks_attempts(self, input: Option<Vec<EksAttemptDetail>>) -> Self
pub fn set_eks_attempts(self, input: Option<Vec<EksAttemptDetail>>) -> Self
A list of job attempts that are associated with this job.
sourcepub fn is_cancelled(self, input: bool) -> Self
pub fn is_cancelled(self, input: bool) -> Self
Indicates whether the job is canceled.
sourcepub fn set_is_cancelled(self, input: Option<bool>) -> Self
pub fn set_is_cancelled(self, input: Option<bool>) -> Self
Indicates whether the job is canceled.
sourcepub fn is_terminated(self, input: bool) -> Self
pub fn is_terminated(self, input: bool) -> Self
Indicates whether the job is terminated.
sourcepub fn set_is_terminated(self, input: Option<bool>) -> Self
pub fn set_is_terminated(self, input: Option<bool>) -> Self
Indicates whether the job is terminated.
Trait Implementations§
source§impl Clone for JobDetailBuilder
impl Clone for JobDetailBuilder
source§fn clone(&self) -> JobDetailBuilder
fn clone(&self) -> JobDetailBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for JobDetailBuilder
impl Debug for JobDetailBuilder
source§impl Default for JobDetailBuilder
impl Default for JobDetailBuilder
source§fn default() -> JobDetailBuilder
fn default() -> JobDetailBuilder
source§impl PartialEq<JobDetailBuilder> for JobDetailBuilder
impl PartialEq<JobDetailBuilder> for JobDetailBuilder
source§fn eq(&self, other: &JobDetailBuilder) -> bool
fn eq(&self, other: &JobDetailBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.