updateApplication method
Updates the configuration of an existing application, including the IAM role and default KMS key.
Parameter applicationId :
The unique identifier of the application to update.
Parameter defaultKmsKeyId :
The updated identifier of the default AWS KMS key for the application.
Parameter roleArn :
The updated Amazon Resource Name (ARN) of the IAM role for the
application.
Implementation
Future<UpdateApplicationResponse> updateApplication({
required String applicationId,
String? defaultKmsKeyId,
String? roleArn,
}) async {
final $payload = <String, dynamic>{
'applicationId': applicationId,
if (defaultKmsKeyId != null) 'defaultKmsKeyId': defaultKmsKeyId,
if (roleArn != null) 'roleArn': roleArn,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/UpdateApplication',
exceptionFnMap: _exceptionFns,
);
return UpdateApplicationResponse.fromJson(response);
}