Skip to content

This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent

Description

This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent.

Sent to acknowledge that a task changed states.

Usage

ecs_submit_task_state_change(cluster, task, status, reason, containers,
  attachments, managedAgents, pullStartedAt, pullStoppedAt,
  executionStoppedAt)

Arguments

  • cluster

    The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.

  • task

    The task ID or full ARN of the task in the state change request.

  • status

    The status of the state change request.

  • reason

    The reason for the state change request.

  • containers

    Any containers that's associated with the state change request.

  • attachments

    Any attachments associated with the state change request.

  • managedAgents

    The details for the managed agent that's associated with the task.

  • pullStartedAt

    The Unix timestamp for the time when the container image pull started.

  • pullStoppedAt

    The Unix timestamp for the time when the container image pull completed.

  • executionStoppedAt

    The Unix timestamp for the time when the task execution stopped.

Value

A list with the following syntax:

list(
  acknowledgment = "string"
)

Request syntax

svc$submit_task_state_change(
  cluster = "string",
  task = "string",
  status = "string",
  reason = "string",
  containers = list(
    list(
      containerName = "string",
      imageDigest = "string",
      runtimeId = "string",
      exitCode = 123,
      networkBindings = list(
        list(
          bindIP = "string",
          containerPort = 123,
          hostPort = 123,
          protocol = "tcp"|"udp",
          containerPortRange = "string",
          hostPortRange = "string"
        )
      ),
      reason = "string",
      status = "string"
    )
  ),
  attachments = list(
    list(
      attachmentArn = "string",
      status = "string"
    )
  ),
  managedAgents = list(
    list(
      containerName = "string",
      managedAgentName = "ExecuteCommandAgent",
      status = "string",
      reason = "string"
    )
  ),
  pullStartedAt = as.POSIXct(
    "2015-01-01"
  ),
  pullStoppedAt = as.POSIXct(
    "2015-01-01"
  ),
  executionStoppedAt = as.POSIXct(
    "2015-01-01"
  )
)