deleteConnector method
Deletes the specified connector.
May throw BadRequestException.
May throw ForbiddenException.
May throw InternalServerErrorException.
May throw NotFoundException.
May throw ServiceUnavailableException.
May throw TooManyRequestsException.
May throw UnauthorizedException.
Parameter connectorArn :
The Amazon Resource Name (ARN) of the connector that you want to delete.
Parameter currentVersion :
The current version of the connector that you want to delete.
Implementation
Future<DeleteConnectorResponse> deleteConnector({
required String connectorArn,
String? currentVersion,
}) async {
final $query = <String, List<String>>{
if (currentVersion != null) 'currentVersion': [currentVersion],
};
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/v1/connectors/${Uri.encodeComponent(connectorArn)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return DeleteConnectorResponse.fromJson(response);
}