submit_task_state_change
async
¶
submit_task_state_change(
*,
config_overrides: Optional[AsyncECSClientConfig] = None,
cluster: Optional[String] = None,
task: Optional[String] = None,
status: Optional[String] = None,
reason: Optional[String] = None,
containers: Optional[ContainerStateChanges] = None,
attachments: Optional[AttachmentStateChanges] = None,
managed_agents: Optional[ManagedAgentStateChanges] = None,
pull_started_at: Optional[Timestamp] = None,
pull_stopped_at: Optional[Timestamp] = None,
execution_stopped_at: Optional[Timestamp] = None,
) -> SubmitTaskStateChangeResponse
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.
Parameters:
-
cluster(Optional[String], default:None) –The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.
-
task(Optional[String], default:None) –The task ID or full ARN of the task in the state change request.
-
status(Optional[String], default:None) –The status of the state change request.
-
reason(Optional[String], default:None) –The reason for the state change request.
-
containers(Optional[ContainerStateChanges], default:None) –Any containers that's associated with the state change request.
-
attachments(Optional[AttachmentStateChanges], default:None) –Any attachments associated with the state change request.
-
managed_agents(Optional[ManagedAgentStateChanges], default:None) –The details for the managed agent that's associated with the task.
-
pull_started_at(Optional[Timestamp], default:None) –The Unix timestamp for the time when the container image pull started.
-
pull_stopped_at(Optional[Timestamp], default:None) –The Unix timestamp for the time when the container image pull completed.
-
execution_stopped_at(Optional[Timestamp], default:None) –The Unix timestamp for the time when the task execution stopped.
Raises:
-
AccessDeniedException–You don't have authorization to perform the requested action.
-
ClientException–These errors are usually caused by a client action. This client action might be using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Or, it might be specifying an identifier that isn't valid.
-
ClusterNotFoundException–The specified cluster wasn't found. You can view your available clusters with ListClusters. Amazon ECS clusters are Region specific.
-
InvalidParameterException–The specified parameter isn't valid. Review the available parameters for the API request.
For more information about service event errors, see Amazon ECS service event messages.
-
ServerException–These errors are usually caused by a server issue.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ecs/_services/async_ecs.py
2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 | |