describeReportDefinitions method
Lists the AWS Cost and Usage reports available to this account.
May throw InternalErrorException.
Implementation
Future<DescribeReportDefinitionsResponse> describeReportDefinitions({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
5,
5,
);
_s.validateStringLength(
'nextToken',
nextToken,
0,
256,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target':
'AWSOrigamiServiceGatewayService.DescribeReportDefinitions'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
},
);
return DescribeReportDefinitionsResponse.fromJson(jsonResponse.body);
}