Show / Hide Table of Contents

Class Device

A container instance host device.

Inheritance
object
Device
Implements
IDevice
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class Device : IDevice
Syntax (vb)
Public Class Device Implements 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.Batch;

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

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

Synopsis

Constructors

Device()

A container instance host device.

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.

Constructors

Device()

A container instance host device.

public Device()
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.Batch;

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

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

Properties

ContainerPath

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

public string? ContainerPath { get; set; }
Property Value

string

Remarks

Default: Same path as the host

HostPath

The path for the device on the host container instance.

public string HostPath { get; set; }
Property Value

string

Remarks

ExampleMetadata: fixture=_generated

Permissions

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

public DevicePermission[]? Permissions { get; set; }
Property Value

DevicePermission[]

Remarks

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

Default: Readonly

Implements

IDevice
Back to top Generated by DocFX