Submit Task State Change
| ecs_submit_task_state_change | R Documentation |
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¶
clusterThe short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.
taskThe task ID or full ARN of the task in the state change request.
statusThe status of the state change request.
reasonThe reason for the state change request.
containersAny containers that's associated with the state change request.
attachmentsAny attachments associated with the state change request.
managedAgentsThe details for the managed agent that's associated with the task.
pullStartedAtThe Unix timestamp for the time when the container image pull started.
pullStoppedAtThe Unix timestamp for the time when the container image pull completed.
executionStoppedAtThe Unix timestamp for the time when the task execution stopped.
Value¶
A list with the following syntax:
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"
)
)