Class CfnTaskDefinition.DeviceProperty
The Device
property specifies an object representing a container instance host device.
Inheritance
System.Object
CfnTaskDefinition.DeviceProperty
Implements
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class DeviceProperty : Object, CfnTaskDefinition.IDeviceProperty
Syntax (vb)
Public Class DeviceProperty
Inherits Object
Implements CfnTaskDefinition.IDeviceProperty
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 deviceProperty = new DeviceProperty {
ContainerPath = "containerPath",
HostPath = "hostPath",
Permissions = new [] { "permissions" }
};
Synopsis
Constructors
DeviceProperty() |
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
DeviceProperty()
public DeviceProperty()
Properties
ContainerPath
The path inside the container at which to expose the host device.
public string ContainerPath { get; set; }
Property Value
System.String
Remarks
HostPath
The path for the device on the host container instance.
public string HostPath { get; set; }
Property Value
System.String
Remarks
Permissions
The explicit permissions to provide to the container for the device.
public string[] Permissions { get; set; }
Property Value
System.String[]
Remarks
By default, the container has permissions for read
, write
, and mknod
for the device.