getLens method
Get an existing lens.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter lensVersion :
The lens version to be retrieved.
Implementation
Future<GetLensOutput> getLens({
required String lensAlias,
String? lensVersion,
}) async {
final $query = <String, List<String>>{
if (lensVersion != null) 'LensVersion': [lensVersion],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/lenses/${Uri.encodeComponent(lensAlias)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetLensOutput.fromJson(response);
}