updateProject method
Updates a project in AWS CodeStar.
May throw ProjectNotFoundException. May throw ValidationException.
Parameter id
:
The ID of the project you want to update.
Parameter description
:
The description of the project, if any.
Parameter name
:
The name of the project you want to update.
Implementation
Future<void> updateProject({
required String id,
String? description,
String? name,
}) async {
ArgumentError.checkNotNull(id, 'id');
_s.validateStringLength(
'id',
id,
2,
15,
isRequired: true,
);
_s.validateStringLength(
'description',
description,
0,
1024,
);
_s.validateStringLength(
'name',
name,
1,
100,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CodeStar_20170419.UpdateProject'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'id': id,
if (description != null) 'description': description,
if (name != null) 'name': name,
},
);
}