getApplication method

Future<GetApplicationResponse> getApplication({
  1. required String id,
})

Retrieves the configuration and status of an existing OpenSearch application.

May throw AccessDeniedException. May throw BaseException. May throw DisabledOperationException. May throw InternalException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter id : The unique identifier of the OpenSearch application to retrieve.

Implementation

Future<GetApplicationResponse> getApplication({
  required String id,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/2021-01-01/opensearch/application/${Uri.encodeComponent(id)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetApplicationResponse.fromJson(response);
}