updateApplicationSettings method

Future<UpdateApplicationSettingsOutput> updateApplicationSettings({
  1. required String applicationId,
  2. BackintConfig? backint,
  3. List<ApplicationCredential>? credentialsToAddOrUpdate,
  4. List<ApplicationCredential>? credentialsToRemove,
  5. String? databaseArn,
})

Updates the settings of an application registered with AWS Systems Manager for SAP.

May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw UnauthorizedException. May throw ValidationException.

Parameter applicationId : The ID of the application.

Parameter backint : Installation of AWS Backint Agent for SAP HANA.

Parameter credentialsToAddOrUpdate : The credentials to be added or updated.

Parameter credentialsToRemove : The credentials to be removed.

Parameter databaseArn : The Amazon Resource Name of the SAP HANA database that replaces the current SAP HANA connection with the SAP_ABAP application.

Implementation

Future<UpdateApplicationSettingsOutput> updateApplicationSettings({
  required String applicationId,
  BackintConfig? backint,
  List<ApplicationCredential>? credentialsToAddOrUpdate,
  List<ApplicationCredential>? credentialsToRemove,
  String? databaseArn,
}) async {
  final $payload = <String, dynamic>{
    'ApplicationId': applicationId,
    if (backint != null) 'Backint': backint,
    if (credentialsToAddOrUpdate != null)
      'CredentialsToAddOrUpdate': credentialsToAddOrUpdate,
    if (credentialsToRemove != null)
      'CredentialsToRemove': credentialsToRemove,
    if (databaseArn != null) 'DatabaseArn': databaseArn,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/update-application-settings',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateApplicationSettingsOutput.fromJson(response);
}