updateApplication method
Updates metadata about an application.
May throw AuthorizationErrorException. May throw InvalidParameterException. May throw InvalidParameterValueException. May throw ServerInternalErrorException. May throw HomeRegionNotSetException.
Parameter configurationId
:
Configuration ID of the application to be updated.
Parameter description
:
New description of the application to be updated.
Parameter name
:
New name of the application to be updated.
Implementation
Future<void> updateApplication({
required String configurationId,
String? description,
String? name,
}) async {
ArgumentError.checkNotNull(configurationId, 'configurationId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSPoseidonService_V2015_11_01.UpdateApplication'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'configurationId': configurationId,
if (description != null) 'description': description,
if (name != null) 'name': name,
},
);
}