Class CfnJobDefinition.DeviceProperty
An object that represents a container instance host device.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnJobDefinition.DeviceProperty : CfnJobDefinition.IDeviceProperty
Syntax (vb)
Public Class CfnJobDefinition.DeviceProperty Implements CfnJobDefinition.IDeviceProperty
Remarks
This object isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
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 deviceProperty = new DeviceProperty {
ContainerPath = "containerPath",
HostPath = "hostPath",
Permissions = new [] { "permissions" }
};
Synopsis
Constructors
| DeviceProperty() | An object that represents a container instance host device. |
Properties
| ContainerPath | The path inside the container that's used 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()
An object that represents a container instance host device.
public DeviceProperty()
Remarks
This object isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
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 deviceProperty = new DeviceProperty {
ContainerPath = "containerPath",
HostPath = "hostPath",
Permissions = new [] { "permissions" }
};
Properties
ContainerPath
The path inside the container that's used to expose the host device.
public string? ContainerPath { get; set; }
Property Value
Remarks
By default, the hostPath value is used.
HostPath
The path for the device on the host container instance.
public string? HostPath { get; set; }
Property Value
Remarks
Permissions
The explicit permissions to provide to the container for the device.
public string[]? Permissions { get; set; }
Property Value
string[]
Remarks
By default, the container has permissions for read , write , and mknod for the device.