deleteConnector method
Deletes a CSPM connector. When you delete a connector, Security Hub CSPM stops ingesting findings and resource data from the connected cloud provider environment.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw InvalidAccessException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter connectorId :
The unique identifier of the connector to delete.
Implementation
Future<DeleteConnectorResponse> deleteConnector({
required String connectorId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/connectors/${connectorId.split('/').map(Uri.encodeComponent).join('/')}',
exceptionFnMap: _exceptionFns,
);
return DeleteConnectorResponse.fromJson(response);
}