submit_container_state_change
¶
submit_container_state_change(
*,
config_overrides: Optional[ECSClientConfig] = None,
cluster: Optional[String] = None,
task: Optional[String] = None,
container_name: Optional[String] = None,
runtime_id: Optional[String] = None,
status: Optional[String] = None,
exit_code: Optional[BoxedInteger] = None,
reason: Optional[String] = None,
network_bindings: Optional[NetworkBindings] = None,
) -> SubmitContainerStateChangeResponse
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.
Parameters:
-
cluster(Optional[String], default:None) –The short name or full ARN of the cluster that hosts the container.
-
task(Optional[String], default:None) –The task ID or full Amazon Resource Name (ARN) of the task that hosts the container.
-
container_name(Optional[String], default:None) –The name of the container.
-
runtime_id(Optional[String], default:None) –The ID of the Docker container.
-
status(Optional[String], default:None) –The status of the state change request.
-
exit_code(Optional[BoxedInteger], default:None) –The exit code that's returned for the state change request.
-
reason(Optional[String], default:None) –The reason for the state change request.
-
network_bindings(Optional[NetworkBindings], default:None) –The network bindings of the container.
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/ecs.py
2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 | |