importSignalCatalog method

Future<ImportSignalCatalogResponse> importSignalCatalog({
  1. required String name,
  2. String? description,
  3. List<Tag>? tags,
  4. FormattedVss? vss,
})

Creates a signal catalog using your existing VSS formatted content from your local device.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw InvalidSignalsException. May throw LimitExceededException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter name : The name of the signal catalog to import.

Parameter description : A brief description of the signal catalog.

Parameter tags : Metadata that can be used to manage the signal catalog.

Parameter vss : The contents of the Vehicle Signal Specification (VSS) configuration. VSS is a precise language used to describe and model signals in vehicle networks.

Implementation

Future<ImportSignalCatalogResponse> importSignalCatalog({
  required String name,
  String? description,
  List<Tag>? tags,
  FormattedVss? vss,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'IoTAutobahnControlPlane.ImportSignalCatalog'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'name': name,
      if (description != null) 'description': description,
      if (tags != null) 'tags': tags,
      if (vss != null) 'vss': vss,
    },
  );

  return ImportSignalCatalogResponse.fromJson(jsonResponse.body);
}