libZSservicesZSamazonka-iotZSamazonka-iot
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.IoT.Types.MqttContext

Description

 
Synopsis

Documentation

data MqttContext Source #

Specifies the MQTT context to use for the test authorizer request

See: newMqttContext smart constructor.

Constructors

MqttContext' 

Fields

Instances

Instances details
Eq MqttContext Source # 
Instance details

Defined in Amazonka.IoT.Types.MqttContext

Read MqttContext Source # 
Instance details

Defined in Amazonka.IoT.Types.MqttContext

Show MqttContext Source # 
Instance details

Defined in Amazonka.IoT.Types.MqttContext

Generic MqttContext Source # 
Instance details

Defined in Amazonka.IoT.Types.MqttContext

Associated Types

type Rep MqttContext :: Type -> Type #

NFData MqttContext Source # 
Instance details

Defined in Amazonka.IoT.Types.MqttContext

Methods

rnf :: MqttContext -> () #

Hashable MqttContext Source # 
Instance details

Defined in Amazonka.IoT.Types.MqttContext

ToJSON MqttContext Source # 
Instance details

Defined in Amazonka.IoT.Types.MqttContext

type Rep MqttContext Source # 
Instance details

Defined in Amazonka.IoT.Types.MqttContext

type Rep MqttContext = D1 ('MetaData "MqttContext" "Amazonka.IoT.Types.MqttContext" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "MqttContext'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clientId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "password") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Base64)))))

newMqttContext :: MqttContext Source #

Create a value of MqttContext 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:clientId:MqttContext', mqttContext_clientId - The value of the clientId key in an MQTT authorization request.

$sel:username:MqttContext', mqttContext_username - The value of the username key in an MQTT authorization request.

$sel:password:MqttContext', mqttContext_password - The value of the password key in an MQTT authorization request.-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.

mqttContext_clientId :: Lens' MqttContext (Maybe Text) Source #

The value of the clientId key in an MQTT authorization request.

mqttContext_username :: Lens' MqttContext (Maybe Text) Source #

The value of the username key in an MQTT authorization request.

mqttContext_password :: Lens' MqttContext (Maybe ByteString) Source #

The value of the password key in an MQTT authorization request.-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.