JobDefinition class

An object representing an AWS Batch job definition.

Constructors

JobDefinition({required String jobDefinitionArn, required String jobDefinitionName, required int revision, required String type, ContainerProperties? containerProperties, NodeProperties? nodeProperties, Map<String, String>? parameters, List<PlatformCapability>? platformCapabilities, bool? propagateTags, RetryStrategy? retryStrategy, String? status, Map<String, String>? tags, JobTimeout? timeout})
JobDefinition.fromJson(Map<String, dynamic> json)
factory

Properties

containerProperties ContainerProperties?
An object with various properties specific to container-based jobs.
final
hashCode int
The hash code for this object.
no setterinherited
jobDefinitionArn String
The Amazon Resource Name (ARN) for the job definition.
final
jobDefinitionName String
The name of the job definition.
final
nodeProperties NodeProperties?
An object with various properties specific to multi-node parallel jobs.
final
parameters Map<String, String>?
Default parameters or parameter substitution placeholders that are set in the job definition. Parameters are specified as a key-value pair mapping. Parameters in a SubmitJob request override any corresponding parameter defaults from the job definition. For more information about specifying parameters, see Job Definition Parameters in the AWS Batch User Guide.
final
platformCapabilities List<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.
final
propagateTags 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 during task creation. 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.
final
retryStrategy RetryStrategy?
The retry strategy to use for failed jobs that are submitted with this job definition.
final
revision int
The revision of the job definition.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status String?
The status of the job definition.
final
tags Map<String, String>?
The tags applied to the job definition.
final
timeout JobTimeout?
The timeout configuration for jobs that are submitted with this job definition. You can specify a timeout duration after which AWS Batch terminates your jobs if they haven't finished.
final
type String
The type of job definition. If the job is run on Fargate resources, then multinode isn't supported. For more information about multi-node parallel jobs, see Creating a multi-node parallel job definition in the AWS Batch User Guide.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited