Show / Hide Table of Contents

Interface IDevice

A container instance host device.

Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public interface IDevice
Syntax (vb)
Public Interface IDevice
Remarks

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;

var device = new Device {
    HostPath = "hostPath",

    // the properties below are optional
    ContainerPath = "containerPath",
    Permissions = new [] { DevicePermission.READ }
};

Synopsis

Properties

ContainerPath

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

HostPath

The path for the device on the host container instance.

Permissions

The explicit permissions to provide to the container for the device.

Properties

ContainerPath

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

virtual string ContainerPath { get; }
Property Value

System.String

Remarks

Default: Same path as the host

HostPath

The path for the device on the host container instance.

string HostPath { get; }
Property Value

System.String

Permissions

The explicit permissions to provide to the container for the device.

virtual DevicePermission[] Permissions { get; }
Property Value

DevicePermission[]

Remarks

By default, the container has permissions for read, write, and mknod for the device.

Default: Readonly

Back to top Generated by DocFX