updateConnectivityInfo method

Future<UpdateConnectivityInfoResponse> updateConnectivityInfo({
  1. required String thingName,
  2. List<ConnectivityInfo>? connectivityInfo,
})

Updates the connectivity information for the core. Any devices that belong to the group which has this core will receive this information in order to find the location of the core and connect to it.

May throw BadRequestException. May throw InternalServerErrorException.

Parameter thingName : The thing name.

Parameter connectivityInfo : A list of connectivity info.

Implementation

Future<UpdateConnectivityInfoResponse> updateConnectivityInfo({
  required String thingName,
  List<ConnectivityInfo>? connectivityInfo,
}) async {
  ArgumentError.checkNotNull(thingName, 'thingName');
  final $payload = <String, dynamic>{
    if (connectivityInfo != null) 'ConnectivityInfo': connectivityInfo,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri:
        '/greengrass/things/${Uri.encodeComponent(thingName)}/connectivityInfo',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateConnectivityInfoResponse.fromJson(response);
}