exportProject method

Future<ExportProjectResult> exportProject({
  1. required String projectId,
})

Exports project configuration to a snapshot which can be downloaded and shared. Note that mobile app push credentials are encrypted in exported projects, so they can only be shared successfully within the same AWS account.

May throw InternalFailureException. May throw ServiceUnavailableException. May throw UnauthorizedException. May throw TooManyRequestsException. May throw BadRequestException. May throw NotFoundException.

Parameter projectId : Unique project identifier.

Implementation

Future<ExportProjectResult> exportProject({
  required String projectId,
}) async {
  ArgumentError.checkNotNull(projectId, 'projectId');
  final response = await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri: '/exports/${Uri.encodeComponent(projectId)}',
    exceptionFnMap: _exceptionFns,
  );
  return ExportProjectResult.fromJson(response);
}