importDecoderManifest method
Creates a decoder manifest using your existing CAN DBC file from your local device.
The CAN signal name must be unique and not repeated across CAN message definitions in a .dbc file.
May throw AccessDeniedException.
May throw ConflictException.
May throw DecoderManifestValidationException.
May throw InvalidSignalsException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter name :
The name of the decoder manifest to import.
Parameter networkFileDefinitions :
The file to load into an Amazon Web Services account.
Implementation
Future<ImportDecoderManifestResponse> importDecoderManifest({
required String name,
required List<NetworkFileDefinition> networkFileDefinitions,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'IoTAutobahnControlPlane.ImportDecoderManifest'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'name': name,
'networkFileDefinitions': networkFileDefinitions,
},
);
return ImportDecoderManifestResponse.fromJson(jsonResponse.body);
}