getSite method

Future<GetSiteOutput> getSite({
  1. required String siteId,
})

Gets information about the specified Outpost site.

May throw AccessDeniedException. May throw InternalServerException. May throw NotFoundException. May throw ValidationException.

Parameter siteId : The ID or the Amazon Resource Name (ARN) of the site.

Implementation

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