amazonka-ecs-2.0: Amazon EC2 Container Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
FromJSON Device Source # 
Instance details

Defined in Amazonka.ECS.Types.Device

ToJSON 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 #

Read Device Source # 
Instance details

Defined in Amazonka.ECS.Types.Device

Show Device Source # 
Instance details

Defined in Amazonka.ECS.Types.Device

NFData Device Source # 
Instance details

Defined in Amazonka.ECS.Types.Device

Methods

rnf :: Device -> () #

Eq Device Source # 
Instance details

Defined in Amazonka.ECS.Types.Device

Methods

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

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

Hashable Device Source # 
Instance details

Defined in Amazonka.ECS.Types.Device

Methods

hashWithSalt :: Int -> Device -> Int #

hash :: Device -> Int #

type Rep Device Source # 
Instance details

Defined in Amazonka.ECS.Types.Device

type Rep Device = D1 ('MetaData "Device" "Amazonka.ECS.Types.Device" "amazonka-ecs-2.0-3xFxVqi9x5nBZ44jBEC5G8" '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.