libZSservicesZSamazonka-batchZSamazonka-batch
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.Batch.Types.Device

Description

 
Synopsis

Documentation

data Device Source #

An object representing 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

  • containerPath :: Maybe Text

    The path inside the container that's used to expose the host device. By default, the hostPath value is used.

  • 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.Batch.Types.Device

Methods

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

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

Read Device Source # 
Instance details

Defined in Amazonka.Batch.Types.Device

Show Device Source # 
Instance details

Defined in Amazonka.Batch.Types.Device

Generic Device Source # 
Instance details

Defined in Amazonka.Batch.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.Batch.Types.Device

Methods

rnf :: Device -> () #

Hashable Device Source # 
Instance details

Defined in Amazonka.Batch.Types.Device

Methods

hashWithSalt :: Int -> Device -> Int #

hash :: Device -> Int #

ToJSON Device Source # 
Instance details

Defined in Amazonka.Batch.Types.Device

FromJSON Device Source # 
Instance details

Defined in Amazonka.Batch.Types.Device

type Rep Device Source # 
Instance details

Defined in Amazonka.Batch.Types.Device

type Rep Device = D1 ('MetaData "Device" "Amazonka.Batch.Types.Device" "libZSservicesZSamazonka-batchZSamazonka-batch" '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 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.

device_hostPath :: Lens' Device Text Source #

The path for the device on the host container instance.