updateBackendConfig method

Future<UpdateBackendConfigResponse> updateBackendConfig({
  1. required String appId,
  2. LoginAuthConfigReqObj? loginAuthConfig,
})

Updates the AWS resources required to access the Amplify Admin UI.

May throw BadRequestException. May throw GatewayTimeoutException. May throw NotFoundException. May throw TooManyRequestsException.

Parameter appId : The app ID.

Parameter loginAuthConfig : Describes the Amazon Cognito configuration for Admin UI access.

Implementation

Future<UpdateBackendConfigResponse> updateBackendConfig({
  required String appId,
  LoginAuthConfigReqObj? loginAuthConfig,
}) async {
  final $payload = <String, dynamic>{
    if (loginAuthConfig != null) 'loginAuthConfig': loginAuthConfig,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/backend/${Uri.encodeComponent(appId)}/config/update',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateBackendConfigResponse.fromJson(response);
}