listConnectorDefinitionVersions method
Lists the versions of a connector definition, which are containers for connectors. Connectors run on the Greengrass core and contain built-in integration with local infrastructure, device protocols, AWS, and other cloud services.
May throw BadRequestException.
Parameter connectorDefinitionId
:
The ID of the connector definition.
Parameter maxResults
:
The maximum number of results to be returned per request.
Parameter nextToken
:
The token for the next set of results, or ''null'' if there are no
additional results.
Implementation
Future<ListConnectorDefinitionVersionsResponse>
listConnectorDefinitionVersions({
required String connectorDefinitionId,
String? maxResults,
String? nextToken,
}) async {
ArgumentError.checkNotNull(connectorDefinitionId, 'connectorDefinitionId');
final $query = <String, List<String>>{
if (maxResults != null) 'MaxResults': [maxResults],
if (nextToken != null) 'NextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/greengrass/definition/connectors/${Uri.encodeComponent(connectorDefinitionId)}/versions',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListConnectorDefinitionVersionsResponse.fromJson(response);
}