Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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 representing a container instance host device.
See: newDevice
smart constructor.
Device' | |
|
Instances
Eq Device Source # | |
Read Device Source # | |
Show Device Source # | |
Generic Device Source # | |
NFData Device Source # | |
Defined in Amazonka.ECS.Types.Device | |
Hashable Device Source # | |
Defined in Amazonka.ECS.Types.Device | |
ToJSON Device Source # | |
Defined in Amazonka.ECS.Types.Device | |
FromJSON Device Source # | |
type Rep Device Source # | |
Defined in Amazonka.ECS.Types.Device type Rep Device = D1 ('MetaData "Device" "Amazonka.ECS.Types.Device" "libZSservicesZSamazonka-ecsZSamazonka-ecs" '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 at which to expose the host device.
$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 at which to expose the host device.
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.