Skip to content

Device

Source code in docs_src/capo_ecs/types/device.py
class Device(TypedDict, closed=True):
    host_path: "capo_ecs.types.string.String"
    """<p>The path for the device on the host container instance.</p>"""
    container_path: NotRequired["capo_ecs.types.string.String"]
    """<p>The path inside the container at which to expose the host device.</p>"""
    permissions: NotRequired[
        "capo_ecs.types.device_cgroup_permissions.DeviceCgroupPermissions"
    ]
    """<p>The explicit permissions to provide to the container for the device. By default, the container has permissions for <code>read</code>, <code>write</code>, and <code>mknod</code> for the device.</p>"""

container_path instance-attribute

container_path: NotRequired[String]

The path inside the container at which to expose the host device.

host_path instance-attribute

host_path: String

The path for the device on the host container instance.

permissions instance-attribute

permissions: NotRequired[DeviceCgroupPermissions]

The explicit permissions to provide to the container for the device. By default, the container has permissions for read, write, and mknod for the device.