interface DeviceProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ECS.Mixins.CfnTaskDefinitionPropsMixin.DeviceProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsecs/mixins#CfnTaskDefinitionPropsMixin_DeviceProperty |
Java | software.amazon.awscdk.mixins.preview.services.ecs.mixins.CfnTaskDefinitionPropsMixin.DeviceProperty |
Python | aws_cdk.mixins_preview.aws_ecs.mixins.CfnTaskDefinitionPropsMixin.DeviceProperty |
TypeScript | @aws-cdk/mixins-preview » aws_ecs » mixins » CfnTaskDefinitionPropsMixin » 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 { mixins as ecs_mixins } from '@aws-cdk/mixins-preview/aws-ecs';
const deviceProperty: ecs_mixins.CfnTaskDefinitionPropsMixin.DeviceProperty = {
containerPath: 'containerPath',
hostPath: 'hostPath',
permissions: ['permissions'],
};
Properties
| Name | Type | Description |
|---|---|---|
| container | string | The path inside the container at which to expose the host device. |
| host | string | The 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.

.NET
Go
Java
Python
TypeScript