updateApplication method
Changes the name of an application.
May throw ApplicationAlreadyExistsException.
May throw ApplicationDoesNotExistException.
May throw ApplicationNameRequiredException.
May throw InvalidApplicationNameException.
Parameter applicationName :
The current name of the application you want to change.
Parameter newApplicationName :
The new name to give the application.
Implementation
Future<void> updateApplication({
String? applicationName,
String? newApplicationName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CodeDeploy_20141006.UpdateApplication'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (applicationName != null) 'applicationName': applicationName,
if (newApplicationName != null)
'newApplicationName': newApplicationName,
},
);
}