describeProblem method
Describes an application problem.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter problemId :
The ID of the problem.
Parameter accountId :
The Amazon Web Services account ID for the owner of the resource group
affected by the problem.
Implementation
Future<DescribeProblemResponse> describeProblem({
required String problemId,
String? accountId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'EC2WindowsBarleyService.DescribeProblem'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ProblemId': problemId,
if (accountId != null) 'AccountId': accountId,
},
);
return DescribeProblemResponse.fromJson(jsonResponse.body);
}