Skip to content

ECS  >  Operations  >  delete_daemon

delete_daemon

Operation

delete_daemon async

delete_daemon(input: DeleteDaemonInput, plugins: list[Plugin] | None = None) -> DeleteDaemonOutput

Deletes the specified daemon. The daemon must be in an ACTIVE state 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.

Parameters:

Name Type Description Default
input DeleteDaemonInput

An instance of DeleteDaemonInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DeleteDaemonOutput

An instance of DeleteDaemonOutput.

Input

DeleteDaemonInput dataclass

Bases: _SerdeShape

Dataclass for DeleteDaemonInput structure.

Attributes

daemon_arn class-attribute instance-attribute
daemon_arn: str | None = ...

The Amazon Resource Name (ARN) of the daemon to delete.

Output

DeleteDaemonOutput dataclass

Bases: _SerdeShape

Dataclass for DeleteDaemonOutput structure.

Attributes

created_at class-attribute instance-attribute
created_at: datetime | None = ...

The Unix timestamp for the time when the daemon was created.

daemon_arn class-attribute instance-attribute
daemon_arn: str | None = ...

The Amazon Resource Name (ARN) of the daemon.

deployment_arn class-attribute instance-attribute
deployment_arn: str | None = ...

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.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

status class-attribute instance-attribute
status: str | None = ...

The status of the daemon. After you call DeleteDaemon, the status changes to DELETE_IN_PROGRESS.

updated_at class-attribute instance-attribute
updated_at: datetime | None = ...

The Unix timestamp for the time when the daemon was last updated.