getPortal method

Future<GetPortalResponse> getPortal({
  1. required String portalArn,
})

Gets the web portal.

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

Parameter portalArn : The ARN of the web portal.

Implementation

Future<GetPortalResponse> getPortal({
  required String portalArn,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/portals/${portalArn.split('/').map(Uri.encodeComponent).join('/')}',
    exceptionFnMap: _exceptionFns,
  );
  return GetPortalResponse.fromJson(response);
}