Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Updates connectivity information for a Greengrass core device.
Connectivity information includes endpoints and ports where client devices can connect to an MQTT broker on the core device. When a client device calls the IoT Greengrass discovery API, IoT Greengrass returns connectivity information for all of the core devices where the client device can connect. For more information, see Connect client devices to core devices in the IoT Greengrass Version 2 Developer Guide.
Synopsis
- data UpdateConnectivityInfo = UpdateConnectivityInfo' {}
- newUpdateConnectivityInfo :: Text -> UpdateConnectivityInfo
- updateConnectivityInfo_thingName :: Lens' UpdateConnectivityInfo Text
- updateConnectivityInfo_connectivityInfo :: Lens' UpdateConnectivityInfo [ConnectivityInfo]
- data UpdateConnectivityInfoResponse = UpdateConnectivityInfoResponse' {}
- newUpdateConnectivityInfoResponse :: Int -> UpdateConnectivityInfoResponse
- updateConnectivityInfoResponse_message :: Lens' UpdateConnectivityInfoResponse (Maybe Text)
- updateConnectivityInfoResponse_version :: Lens' UpdateConnectivityInfoResponse (Maybe Text)
- updateConnectivityInfoResponse_httpStatus :: Lens' UpdateConnectivityInfoResponse Int
Creating a Request
data UpdateConnectivityInfo Source #
See: newUpdateConnectivityInfo
smart constructor.
UpdateConnectivityInfo' | |
|
Instances
newUpdateConnectivityInfo Source #
Create a value of UpdateConnectivityInfo
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:
UpdateConnectivityInfo
, updateConnectivityInfo_thingName
- The name of the core device. This is also the name of the IoT thing.
$sel:connectivityInfo:UpdateConnectivityInfo'
, updateConnectivityInfo_connectivityInfo
- The connectivity information for the core device.
Request Lenses
updateConnectivityInfo_thingName :: Lens' UpdateConnectivityInfo Text Source #
The name of the core device. This is also the name of the IoT thing.
updateConnectivityInfo_connectivityInfo :: Lens' UpdateConnectivityInfo [ConnectivityInfo] Source #
The connectivity information for the core device.
Destructuring the Response
data UpdateConnectivityInfoResponse Source #
See: newUpdateConnectivityInfoResponse
smart constructor.
Instances
newUpdateConnectivityInfoResponse Source #
Create a value of UpdateConnectivityInfoResponse
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:
UpdateConnectivityInfoResponse
, updateConnectivityInfoResponse_message
- A message about the connectivity information update request.
$sel:version:UpdateConnectivityInfoResponse'
, updateConnectivityInfoResponse_version
- The new version of the connectivity information for the core device.
$sel:httpStatus:UpdateConnectivityInfoResponse'
, updateConnectivityInfoResponse_httpStatus
- The response's http status code.
Response Lenses
updateConnectivityInfoResponse_message :: Lens' UpdateConnectivityInfoResponse (Maybe Text) Source #
A message about the connectivity information update request.
updateConnectivityInfoResponse_version :: Lens' UpdateConnectivityInfoResponse (Maybe Text) Source #
The new version of the connectivity information for the core device.
updateConnectivityInfoResponse_httpStatus :: Lens' UpdateConnectivityInfoResponse Int Source #
The response's http status code.