getLensVersionDifference method

Future<GetLensVersionDifferenceOutput> getLensVersionDifference({
  1. required String lensAlias,
  2. String? baseLensVersion,
  3. String? targetLensVersion,
})

Get lens version differences.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter baseLensVersion : The base version of the lens.

Parameter targetLensVersion : The lens version to target a difference for.

Implementation

Future<GetLensVersionDifferenceOutput> getLensVersionDifference({
  required String lensAlias,
  String? baseLensVersion,
  String? targetLensVersion,
}) async {
  final $query = <String, List<String>>{
    if (baseLensVersion != null) 'BaseLensVersion': [baseLensVersion],
    if (targetLensVersion != null) 'TargetLensVersion': [targetLensVersion],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/lenses/${Uri.encodeComponent(lensAlias)}/versionDifference',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetLensVersionDifferenceOutput.fromJson(response);
}