@aws-cdk_aws-batch-alpha.Device

interface Device ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Batch.Alpha.Device
Gogithub.com/aws/aws-cdk-go/awscdkbatchalpha/v2#Device
Javasoftware.amazon.awscdk.services.batch.alpha.Device
Pythonaws_cdk.aws_batch_alpha.Device
TypeScript (source)@aws-cdk/aws-batch-alpha ยป Device

A container instance host device.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as batch_alpha from '@aws-cdk/aws-batch-alpha';
const device: batch_alpha.Device = {
  hostPath: 'hostPath',

  // the properties below are optional
  containerPath: 'containerPath',
  permissions: [batch_alpha.DevicePermission.READ],
};

Properties

NameTypeDescription
hostPath๐Ÿ”นstringThe path for the device on the host container instance.
containerPath?๐Ÿ”นstringThe path inside the container at which to expose the host device.
permissions?๐Ÿ”นDevicePermission[]The explicit permissions to provide to the container for the device.

hostPath๐Ÿ”น

Type: string

The path for the device on the host container instance.


containerPath?๐Ÿ”น

Type: string (optional, default: Same path as the host)

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


permissions?๐Ÿ”น

Type: DevicePermission[] (optional, default: Readonly)

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.