getDashboard method

Future<GetDashboardResponse> getDashboard({
  1. required String arn,
})

Retrieves the configuration and metadata of a specified dashboard, including its widgets and layout settings.

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

Parameter arn : The ARN of the dashboard to retrieve. This is required to uniquely identify the dashboard.

Implementation

Future<GetDashboardResponse> getDashboard({
  required String arn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'AWSBCMDashboardsService.GetDashboard'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'arn': arn,
    },
  );

  return GetDashboardResponse.fromJson(jsonResponse.body);
}