add enableExecuteCommand option to the run_task function (#2918)

This commit is contained in:
Shuchang Zheng
2025-07-09 18:07:51 -07:00
committed by GitHub
parent 1d7585b40a
commit abfdf8964a

View File

@@ -269,6 +269,7 @@ class AsyncAWSClient:
subnets: list[str],
security_groups: list[str],
assign_public_ip: str = "DISABLED",
enable_execute_command: bool = False,
) -> dict:
# https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ecs/client/run_task.html
async with self._ecs_client() as client:
@@ -283,6 +284,7 @@ class AsyncAWSClient:
"assignPublicIp": assign_public_ip,
}
},
enableExecuteCommand=enable_execute_command,
)
async def stop_task(self, cluster: str, task: str, reason: str | None = None) -> dict: