aws-cdk-lib.aws_ecs.CfnTaskDefinition.DeviceProperty

interface DeviceProperty

LanguageType name
.NETAmazon.CDK.AWS.ECS.CfnTaskDefinition.DeviceProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecs#CfnTaskDefinition_DeviceProperty
Javasoftware.amazon.awscdk.services.ecs.CfnTaskDefinition.DeviceProperty
Pythonaws_cdk.aws_ecs.CfnTaskDefinition.DeviceProperty
TypeScript aws-cdk-lib » aws_ecs » CfnTaskDefinition » DeviceProperty

The Device property specifies an object representing 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 { aws_ecs as ecs } from 'aws-cdk-lib';
const deviceProperty: ecs.CfnTaskDefinition.DeviceProperty = {
  containerPath: 'containerPath',
  hostPath: 'hostPath',
  permissions: ['permissions'],
};

Properties

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

containerPath?

Type: string (optional)

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


hostPath?

Type: string (optional)

The path for the device on the host container instance.


permissions?

Type: string[] (optional)

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.