batchGetRepositories method
Returns information about one or more repositories.
May throw RepositoryNamesRequiredException. May throw MaximumRepositoryNamesExceededException. May throw InvalidRepositoryNameException. May throw EncryptionIntegrityChecksFailedException. May throw EncryptionKeyAccessDeniedException. May throw EncryptionKeyDisabledException. May throw EncryptionKeyNotFoundException. May throw EncryptionKeyUnavailableException.
Parameter repositoryNames
:
The names of the repositories to get information about.
Implementation
Future<BatchGetRepositoriesOutput> batchGetRepositories({
required List<String> repositoryNames,
}) async {
ArgumentError.checkNotNull(repositoryNames, 'repositoryNames');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CodeCommit_20150413.BatchGetRepositories'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'repositoryNames': repositoryNames,
},
);
return BatchGetRepositoriesOutput.fromJson(jsonResponse.body);
}