updateApplication method
Updates the specified application to have the specified properties.
Parameter applicationName
:
The name of the application to update. If no such application is found,
UpdateApplication
returns an
InvalidParameterValue
error.
Parameter description
:
A new description for the application.
Default: If not specified, AWS Elastic Beanstalk does not update the description.
Implementation
Future<ApplicationDescriptionMessage> updateApplication({
required String applicationName,
String? description,
}) async {
ArgumentError.checkNotNull(applicationName, 'applicationName');
_s.validateStringLength(
'applicationName',
applicationName,
1,
100,
isRequired: true,
);
_s.validateStringLength(
'description',
description,
0,
200,
);
final $request = <String, dynamic>{};
$request['ApplicationName'] = applicationName;
description?.also((arg) => $request['Description'] = arg);
final $result = await _protocol.send(
$request,
action: 'UpdateApplication',
version: '2010-12-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['UpdateApplicationMessage'],
shapes: shapes,
resultWrapper: 'UpdateApplicationResult',
);
return ApplicationDescriptionMessage.fromXml($result);
}