getDatabase method

Future<GetDatabaseOutput> getDatabase({
  1. String? applicationId,
  2. String? componentId,
  3. String? databaseArn,
  4. String? databaseId,
})

Gets the SAP HANA database of an application registered with AWS Systems Manager for SAP.

May throw InternalServerException. May throw ValidationException.

Parameter applicationId : The ID of the application.

Parameter componentId : The ID of the component.

Parameter databaseArn : The Amazon Resource Name (ARN) of the database.

Parameter databaseId : The ID of the database.

Implementation

Future<GetDatabaseOutput> getDatabase({
  String? applicationId,
  String? componentId,
  String? databaseArn,
  String? databaseId,
}) async {
  final $payload = <String, dynamic>{
    if (applicationId != null) 'ApplicationId': applicationId,
    if (componentId != null) 'ComponentId': componentId,
    if (databaseArn != null) 'DatabaseArn': databaseArn,
    if (databaseId != null) 'DatabaseId': databaseId,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/get-database',
    exceptionFnMap: _exceptionFns,
  );
  return GetDatabaseOutput.fromJson(response);
}