deleteRepositoryLink method

Future<void> deleteRepositoryLink({
  1. required String repositoryLinkId,
})

Deletes the association between your connection and a specified external Git repository.

May throw AccessDeniedException. May throw ConcurrentModificationException. May throw InternalServerException. May throw InvalidInputException. May throw ResourceNotFoundException. May throw SyncConfigurationStillExistsException. May throw ThrottlingException. May throw UnsupportedProviderTypeException.

Parameter repositoryLinkId : The ID of the repository link to be deleted.

Implementation

Future<void> deleteRepositoryLink({
  required String repositoryLinkId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'CodeStar_connections_20191201.DeleteRepositoryLink'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'RepositoryLinkId': repositoryLinkId,
    },
  );
}