Skip to content

ExecuteCommandRequest

Source code in docs_src/capo_ecs/types/execute_command_request.py
class ExecuteCommandRequest(TypedDict, closed=True):
    cluster: NotRequired["capo_ecs.types.string.String"]
    """<p>The Amazon Resource Name (ARN) or short name of the cluster the task is running in. If you do not specify a cluster, the default cluster is assumed.</p>"""
    container: NotRequired["capo_ecs.types.string.String"]
    """<p>The name of the container to execute the command on. A container name only needs to be specified for tasks containing multiple containers.</p>"""
    command: "capo_ecs.types.string.String"
    """<p>The command to run on the container.</p>"""
    interactive: "capo_ecs.types.boolean.Boolean"
    """<p>Use this flag to run your command in interactive mode.</p>"""
    task: "capo_ecs.types.string.String"
    """<p>The Amazon Resource Name (ARN) or ID of the task the container is part of.</p>"""

cluster instance-attribute

cluster: NotRequired[String]

The Amazon Resource Name (ARN) or short name of the cluster the task is running in. If you do not specify a cluster, the default cluster is assumed.

command instance-attribute

command: String

The command to run on the container.

container instance-attribute

container: NotRequired[String]

The name of the container to execute the command on. A container name only needs to be specified for tasks containing multiple containers.

interactive instance-attribute

interactive: Boolean

Use this flag to run your command in interactive mode.

task instance-attribute

task: String

The Amazon Resource Name (ARN) or ID of the task the container is part of.