getResourceDashboard method

Future<GetResourceDashboardResponse> getResourceDashboard({
  1. required String resourceARN,
})

Gets the Live UI/Persistence UI for a session.

May throw InternalServerException. May throw InvalidRequestException. May throw ResourceNotFoundException.

Parameter resourceARN : The The Amazon Resource Name (ARN) for a session.

Implementation

Future<GetResourceDashboardResponse> getResourceDashboard({
  required String resourceARN,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AmazonAthena.GetResourceDashboard'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ResourceARN': resourceARN,
    },
  );

  return GetResourceDashboardResponse.fromJson(jsonResponse.body);
}