updateConnectorDefinition method
Updates a connector definition.
May throw BadRequestException.
Parameter connectorDefinitionId
:
The ID of the connector definition.
Parameter name
:
The name of the definition.
Implementation
Future<void> updateConnectorDefinition({
required String connectorDefinitionId,
String? name,
}) async {
ArgumentError.checkNotNull(connectorDefinitionId, 'connectorDefinitionId');
final $payload = <String, dynamic>{
if (name != null) 'Name': name,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/greengrass/definition/connectors/${Uri.encodeComponent(connectorDefinitionId)}',
exceptionFnMap: _exceptionFns,
);
}