Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
Documentation
data MqttContext Source #
Specifies the MQTT context to use for the test authorizer request
See: newMqttContext
smart constructor.
Instances
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.