Skip to content

delete_daemon

Operation

delete_daemon

delete_daemon(request: DeleteDaemonInput | DeleteDaemonInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteDaemonInputDict]) -> 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
request DeleteDaemonInput | DeleteDaemonInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[DeleteDaemonInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
DeleteDaemonOutput

An instance of DeleteDaemonOutput.

delete_daemon async

delete_daemon(request: DeleteDaemonInput | DeleteDaemonInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteDaemonInputDict]) -> 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
request DeleteDaemonInput | DeleteDaemonInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[DeleteDaemonInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
DeleteDaemonOutput

An instance of DeleteDaemonOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

DeleteDaemonInputDict

Bases: TypedDict

Dictionary form of DeleteDaemonInput.

Attributes

daemon_arn instance-attribute
daemon_arn: Required[str]

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

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.