getApp method

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

Returns an existing Amplify app by appID.

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

Parameter appId : The unique ID for an Amplify app.

Implementation

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