| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Batch.Types.Device
Description
Synopsis
- data Device = Device' {}
- newDevice :: Text -> Device
- device_containerPath :: Lens' Device (Maybe Text)
- device_permissions :: Lens' Device (Maybe [DeviceCgroupPermission])
- device_hostPath :: Lens' Device Text
Documentation
An object that represents a container instance host device.
This object isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
See: newDevice smart constructor.
Constructors
| Device' | |
Fields
| |
Instances
| FromJSON Device Source # | |
| ToJSON Device Source # | |
Defined in Amazonka.Batch.Types.Device | |
| Generic Device Source # | |
| Read Device Source # | |
| Show Device Source # | |
| NFData Device Source # | |
Defined in Amazonka.Batch.Types.Device | |
| Eq Device Source # | |
| Hashable Device Source # | |
Defined in Amazonka.Batch.Types.Device | |
| type Rep Device Source # | |
Defined in Amazonka.Batch.Types.Device type Rep Device = D1 ('MetaData "Device" "Amazonka.Batch.Types.Device" "amazonka-batch-2.0-Ey2VZ5obnq65VwmlrJ2r2K" 'False) (C1 ('MetaCons "Device'" 'PrefixI 'True) (S1 ('MetaSel ('Just "containerPath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "permissions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DeviceCgroupPermission])) :*: S1 ('MetaSel ('Just "hostPath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))) | |
Create a value of Device with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:containerPath:Device', device_containerPath - The path inside the container that's used to expose the host device. By
default, the hostPath value is used.
$sel:permissions:Device', device_permissions - 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.
$sel:hostPath:Device', device_hostPath - The path for the device on the host container instance.
device_containerPath :: Lens' Device (Maybe Text) Source #
The path inside the container that's used to expose the host device. By
default, the hostPath value is used.
device_permissions :: Lens' Device (Maybe [DeviceCgroupPermission]) Source #
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.