getExport method
Exports the contents of a Amazon Lex resource in a specified format.
May throw BadRequestException.
May throw InternalFailureException.
May throw LimitExceededException.
May throw NotFoundException.
Parameter exportType :
The format of the exported data.
Parameter name :
The name of the bot to export.
Parameter resourceType :
The type of resource to export.
Parameter version :
The version of the bot to export.
Implementation
Future<GetExportResponse> getExport({
required ExportType exportType,
required String name,
required ResourceType resourceType,
required String version,
}) async {
final $query = <String, List<String>>{
'exportType': [exportType.value],
'name': [name],
'resourceType': [resourceType.value],
'version': [version],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/exports',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetExportResponse.fromJson(response);
}