libZSservicesZSamazonka-ecsZSamazonka-ecs
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ECS.Types.Device

Description

 
Synopsis

Documentation

data Device Source #

An object representing a container instance host device.

See: newDevice smart constructor.

Constructors

Device' 

Fields

  • containerPath :: Maybe Text

    The path inside the container at which to expose the host device.

  • permissions :: Maybe [DeviceCgroupPermission]

    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.

  • hostPath :: Text

    The path for the device on the host container instance.

Instances

Instances details
Eq Device Source # 
Instance details

Defined in Amazonka.ECS.Types.Device

Methods

(==) :: Device -> Device -> Bool #

(/=) :: Device -> Device -> Bool #

Read Device Source # 
Instance details

Defined in Amazonka.ECS.Types.Device

Show Device Source # 
Instance details

Defined in Amazonka.ECS.Types.Device

Generic Device Source # 
Instance details

Defined in Amazonka.ECS.Types.Device

Associated Types

type Rep Device :: Type -> Type #

Methods

from :: Device -> Rep Device x #

to :: Rep Device x -> Device #

NFData Device Source # 
Instance details

Defined in Amazonka.ECS.Types.Device

Methods

rnf :: Device -> () #

Hashable Device Source # 
Instance details

Defined in Amazonka.ECS.Types.Device

Methods

hashWithSalt :: Int -> Device -> Int #

hash :: Device -> Int #

ToJSON Device Source # 
Instance details

Defined in Amazonka.ECS.Types.Device

FromJSON Device Source # 
Instance details

Defined in Amazonka.ECS.Types.Device

type Rep Device Source # 
Instance details

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))))

newDevice Source #

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.

device_hostPath :: Lens' Device Text Source #

The path for the device on the host container instance.