libZSservicesZSamazonka-greengrassZSamazonka-greengrass
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.Greengrass.Types.Device

Description

 
Synopsis

Documentation

data Device Source #

Information about a device.

See: newDevice smart constructor.

Constructors

Device' 

Fields

  • syncShadow :: Maybe Bool

    If true, the device's local shadow will be automatically synced with the cloud.

  • thingArn :: Text

    The thing ARN of the device.

  • id :: Text

    A descriptive or arbitrary ID for the device. This value must be unique within the device definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''.

  • certificateArn :: Text

    The ARN of the certificate associated with the device.

Instances

Instances details
Eq Device Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Device

Methods

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

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

Read Device Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Device

Show Device Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Device

Generic Device Source # 
Instance details

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

Methods

rnf :: Device -> () #

Hashable Device Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Device

Methods

hashWithSalt :: Int -> Device -> Int #

hash :: Device -> Int #

ToJSON Device Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Device

FromJSON Device Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Device

type Rep Device Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Device

type Rep Device = D1 ('MetaData "Device" "Amazonka.Greengrass.Types.Device" "libZSservicesZSamazonka-greengrassZSamazonka-greengrass" 'False) (C1 ('MetaCons "Device'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "syncShadow") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "thingArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "certificateArn") '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:syncShadow:Device', device_syncShadow - If true, the device's local shadow will be automatically synced with the cloud.

$sel:thingArn:Device', device_thingArn - The thing ARN of the device.

$sel:id:Device', device_id - A descriptive or arbitrary ID for the device. This value must be unique within the device definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''.

$sel:certificateArn:Device', device_certificateArn - The ARN of the certificate associated with the device.

device_syncShadow :: Lens' Device (Maybe Bool) Source #

If true, the device's local shadow will be automatically synced with the cloud.

device_thingArn :: Lens' Device Text Source #

The thing ARN of the device.

device_id :: Lens' Device Text Source #

A descriptive or arbitrary ID for the device. This value must be unique within the device definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''.

device_certificateArn :: Lens' Device Text Source #

The ARN of the certificate associated with the device.