invalidateProjectCache method
Resets the cache for a project.
May throw InvalidInputException. May throw ResourceNotFoundException.
Parameter projectName
:
The name of the AWS CodeBuild build project that the cache is reset for.
Implementation
Future<void> invalidateProjectCache({
required String projectName,
}) async {
ArgumentError.checkNotNull(projectName, 'projectName');
_s.validateStringLength(
'projectName',
projectName,
1,
1152921504606846976,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CodeBuild_20161006.InvalidateProjectCache'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'projectName': projectName,
},
);
}