createSignalCatalog method
Creates a collection of standardized signals that can be reused to create vehicle models.
May throw AccessDeniedException.
May throw ConflictException.
May throw InvalidNodeException.
May throw InvalidSignalsException.
May throw LimitExceededException.
May throw ThrottlingException.
May throw ValidationException.
Parameter name :
The name of the signal catalog to create.
Parameter description :
A brief description of the signal catalog.
Parameter nodes :
A list of information about nodes, which are a general abstraction of
signals. For more information, see the API data type.
Parameter tags :
Metadata that can be used to manage the signal catalog.
Implementation
Future<CreateSignalCatalogResponse> createSignalCatalog({
required String name,
String? description,
List<Node>? nodes,
List<Tag>? tags,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'IoTAutobahnControlPlane.CreateSignalCatalog'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'name': name,
if (description != null) 'description': description,
if (nodes != null) 'nodes': nodes,
if (tags != null) 'tags': tags,
},
);
return CreateSignalCatalogResponse.fromJson(jsonResponse.body);
}