Task class
Details on a task in a cluster.
Constructors
-
Task({List<
Attachment> ? attachments, List<Attribute> ? attributes, String? availabilityZone, String? capacityProviderName, String? clusterArn, Connectivity? connectivity, DateTime? connectivityAt, String? containerInstanceArn, List<Container> ? containers, String? cpu, DateTime? createdAt, String? desiredStatus, DateTime? executionStoppedAt, String? group, HealthStatus? healthStatus, List<InferenceAccelerator> ? inferenceAccelerators, String? lastStatus, LaunchType? launchType, String? memory, TaskOverride? overrides, String? platformVersion, DateTime? pullStartedAt, DateTime? pullStoppedAt, DateTime? startedAt, String? startedBy, TaskStopCode? stopCode, DateTime? stoppedAt, String? stoppedReason, DateTime? stoppingAt, List<Tag> ? tags, String? taskArn, String? taskDefinitionArn, int? version}) -
Task.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
attachments
→ List<
Attachment> ? -
The Elastic Network Adapter associated with the task if the task uses the
awsvpcnetwork mode.final -
attributes
→ List<
Attribute> ? -
The attributes of the task
final
- availabilityZone → String?
-
The availability zone of the task.
final
- capacityProviderName → String?
-
The capacity provider associated with the task.
final
- clusterArn → String?
-
The ARN of the cluster that hosts the task.
final
- connectivity → Connectivity?
-
The connectivity status of a task.
final
- connectivityAt → DateTime?
-
The Unix timestamp for when the task last went into
CONNECTEDstatus.final - containerInstanceArn → String?
-
The ARN of the container instances that host the task.
final
-
containers
→ List<
Container> ? -
The containers associated with the task.
final
- cpu → String?
-
The number of CPU units used by the task as expressed in a task definition.
It can be expressed as an integer using CPU units, for example
1024. It can also be expressed as a string using vCPUs, for example1 vCPUor1 vcpu. String values are converted to an integer indicating the CPU units when the task definition is registered.final - createdAt → DateTime?
-
The Unix timestamp for when the task was created (the task entered the
PENDINGstate).final - desiredStatus → String?
-
The desired status of the task. For more information, see Task
Lifecycle.
final
- executionStoppedAt → DateTime?
-
The Unix timestamp for when the task execution stopped.
final
- group → String?
-
The name of the task group associated with the task.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- healthStatus → HealthStatus?
-
The health status for the task, which is determined by the health of the
essential containers in the task. If all essential containers in the task
are reporting as
HEALTHY, then the task status also reports asHEALTHY. If any essential containers in the task are reporting asUNHEALTHYorUNKNOWN, then the task status also reports asUNHEALTHYorUNKNOWN, accordingly.final -
inferenceAccelerators
→ List<
InferenceAccelerator> ? -
The Elastic Inference accelerator associated with the task.
final
- lastStatus → String?
-
The last known status of the task. For more information, see Task
Lifecycle.
final
- launchType → LaunchType?
-
The launch type on which your task is running. For more information, see Amazon
ECS Launch Types in the Amazon Elastic Container Service Developer
Guide.
final
- memory → String?
-
The amount of memory (in MiB) used by the task as expressed in a task
definition. It can be expressed as an integer using MiB, for example
1024. It can also be expressed as a string using GB, for example1GBor1 GB. String values are converted to an integer indicating the MiB when the task definition is registered.final - overrides → TaskOverride?
-
One or more container overrides.
final
- platformVersion → String?
-
The platform version on which your task is running. A platform version is
only specified for tasks using the Fargate launch type. If one is not
specified, the
LATESTplatform version is used by default. For more information, see AWS Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.final - pullStartedAt → DateTime?
-
The Unix timestamp for when the container image pull began.
final
- pullStoppedAt → DateTime?
-
The Unix timestamp for when the container image pull completed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startedAt → DateTime?
-
The Unix timestamp for when the task started (the task transitioned from the
PENDINGstate to theRUNNINGstate).final - startedBy → String?
-
The tag specified when a task is started. If the task is started by an
Amazon ECS service, then the
startedByparameter contains the deployment ID of the service that starts it.final - stopCode → TaskStopCode?
-
The stop code indicating why a task was stopped. The
stoppedReasonmay contain additional details.final - stoppedAt → DateTime?
-
The Unix timestamp for when the task was stopped (the task transitioned from
the
RUNNINGstate to theSTOPPEDstate).final - stoppedReason → String?
-
The reason that the task was stopped.
final
- stoppingAt → DateTime?
-
The Unix timestamp for when the task stops (transitions from the
RUNNINGstate toSTOPPED).final -
The metadata that you apply to the task to help you categorize and organize
them. Each tag consists of a key and an optional value, both of which you
define.
final
- taskArn → String?
-
The Amazon Resource Name (ARN) of the task.
final
- taskDefinitionArn → String?
-
The ARN of the task definition that creates the task.
final
- version → int?
-
The version counter for the task. Every time a task experiences a change
that triggers a CloudWatch event, the version counter is incremented. If you
are replicating your Amazon ECS task state with CloudWatch Events, you can
compare the version of a task reported by the Amazon ECS API actions with
the version reported in CloudWatch Events for the task (inside the
detailobject) to verify that the version in your event stream is current.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