updateRepositoryDescription method
Sets or changes the comment or description for a repository.
May throw RepositoryNameRequiredException. May throw RepositoryDoesNotExistException. May throw InvalidRepositoryNameException. May throw InvalidRepositoryDescriptionException. May throw EncryptionIntegrityChecksFailedException. May throw EncryptionKeyAccessDeniedException. May throw EncryptionKeyDisabledException. May throw EncryptionKeyNotFoundException. May throw EncryptionKeyUnavailableException.
Parameter repositoryName
:
The name of the repository to set or change the comment or description
for.
Parameter repositoryDescription
:
The new comment or description for the specified repository. Repository
descriptions are limited to 1,000 characters.
Implementation
Future<void> updateRepositoryDescription({
required String repositoryName,
String? repositoryDescription,
}) async {
ArgumentError.checkNotNull(repositoryName, 'repositoryName');
_s.validateStringLength(
'repositoryName',
repositoryName,
1,
100,
isRequired: true,
);
_s.validateStringLength(
'repositoryDescription',
repositoryDescription,
0,
1000,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CodeCommit_20150413.UpdateRepositoryDescription'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'repositoryName': repositoryName,
if (repositoryDescription != null)
'repositoryDescription': repositoryDescription,
},
);
}