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 container changed states.

Usage

ecs_submit_container_state_change(cluster, task, containerName,
  runtimeId, status, exitCode, reason, networkBindings)

Arguments

  • cluster

    The short name or full ARN of the cluster that hosts the container.

  • task

    The task ID or full Amazon Resource Name (ARN) of the task that hosts the container.

  • containerName

    The name of the container.

  • runtimeId

    The ID of the Docker container.

  • status

    The status of the state change request.

  • exitCode

    The exit code that's returned for the state change request.

  • reason

    The reason for the state change request.

  • networkBindings

    The network bindings of the container.

Value

A list with the following syntax:

list(
  acknowledgment = "string"
)

Request syntax

svc$submit_container_state_change(
  cluster = "string",
  task = "string",
  containerName = "string",
  runtimeId = "string",
  status = "string",
  exitCode = 123,
  reason = "string",
  networkBindings = list(
    list(
      bindIP = "string",
      containerPort = 123,
      hostPort = 123,
      protocol = "tcp"|"udp",
      containerPortRange = "string",
      hostPortRange = "string"
    )
  )
)