getConnector method
Retrieves details for a CSPM connector based on the connector ID.
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 retrieve.
Implementation
Future<GetConnectorResponse> getConnector({
required String connectorId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/connectors/${connectorId.split('/').map(Uri.encodeComponent).join('/')}',
exceptionFnMap: _exceptionFns,
);
return GetConnectorResponse.fromJson(response);
}