getApp method

Future<GetAppResult> getApp({
  1. required String appId,
})

Returns an existing Amplify app specified by an app ID.

May throw BadRequestException. May throw InternalFailureException. May throw NotFoundException. May throw UnauthorizedException.

Parameter appId : The unique ID for an Amplify app.

Implementation

Future<GetAppResult> getApp({
  required String appId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/apps/${Uri.encodeComponent(appId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetAppResult.fromJson(response);
}