ECS / Client / delete_daemon
delete_daemon¶
- ECS.Client.delete_daemon(**kwargs)¶
Deletes the specified daemon. The daemon must be in an
ACTIVEstate to be deleted. Deleting a daemon stops all running daemon tasks on the associated container instances. Amazon ECS drains existing container instances and provisions new instances without the deleted daemon. Amazon ECS automatically launches replacement tasks for your Amazon ECS services.Note
ECS Managed Daemons is only supported for Amazon ECS Managed Instances Capacity Providers.
See also: AWS API Documentation
Request Syntax
response = client.delete_daemon( daemonArn='string' )
- Parameters:
daemonArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the daemon to delete.
- Return type:
dict
- Returns:
Response Syntax
{ 'daemonArn': 'string', 'status': 'ACTIVE'|'DELETE_IN_PROGRESS', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1), 'deploymentArn': 'string' }
Response Structure
(dict) –
daemonArn (string) –
The Amazon Resource Name (ARN) of the daemon.
status (string) –
The status of the daemon. After you call
DeleteDaemon, the status changes toDELETE_IN_PROGRESS.createdAt (datetime) –
The Unix timestamp for the time when the daemon was created.
updatedAt (datetime) –
The Unix timestamp for the time when the daemon was last updated.
deploymentArn (string) –
The Amazon Resource Name (ARN) of the daemon deployment that was triggered by the delete operation. This deployment drains existing daemon tasks from the container instances.
Exceptions
ECS.Client.exceptions.AccessDeniedExceptionECS.Client.exceptions.DaemonNotFoundExceptionECS.Client.exceptions.DaemonNotActiveExceptionECS.Client.exceptions.ServerExceptionECS.Client.exceptions.InvalidParameterExceptionECS.Client.exceptions.ClientExceptionECS.Client.exceptions.ClusterNotFoundExceptionECS.Client.exceptions.UnsupportedFeatureException