disassociateRepository method
Removes the association between Amazon CodeGuru Reviewer and a repository.
May throw NotFoundException. May throw InternalServerException. May throw ValidationException. May throw AccessDeniedException. May throw ConflictException. May throw ThrottlingException.
Parameter associationArn
:
The Amazon Resource Name (ARN) of the
RepositoryAssociation
object. You can retrieve this ARN
by calling
ListRepositoryAssociations
.
Implementation
Future<DisassociateRepositoryResponse> disassociateRepository({
required String associationArn,
}) async {
ArgumentError.checkNotNull(associationArn, 'associationArn');
_s.validateStringLength(
'associationArn',
associationArn,
1,
1600,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/associations/${Uri.encodeComponent(associationArn)}',
exceptionFnMap: _exceptionFns,
);
return DisassociateRepositoryResponse.fromJson(response);
}