exportBundle method

Future<ExportBundleResult> exportBundle({
  1. required String bundleId,
  2. Platform? platform,
  3. String? projectId,
})

Generates customized software development kit (SDK) and or tool packages used to integrate mobile web or mobile app clients with backend AWS resources.

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

Parameter bundleId : Unique bundle identifier.

Parameter platform : Developer desktop or target application platform.

Parameter projectId : Unique project identifier.

Implementation

Future<ExportBundleResult> exportBundle({
  required String bundleId,
  Platform? platform,
  String? projectId,
}) async {
  ArgumentError.checkNotNull(bundleId, 'bundleId');
  final $query = <String, List<String>>{
    if (platform != null) 'platform': [platform.toValue()],
    if (projectId != null) 'projectId': [projectId],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri: '/bundles/${Uri.encodeComponent(bundleId)}',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ExportBundleResult.fromJson(response);
}