getPackage method

Future<GetPackageResponse> getPackage({
  1. required String packageName,
})

Gets information about the specified software package.

Requires permission to access the GetPackage action.

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

Parameter packageName : The name of the target software package.

Implementation

Future<GetPackageResponse> getPackage({
  required String packageName,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/packages/${Uri.encodeComponent(packageName)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetPackageResponse.fromJson(response);
}