describeTrustedAdvisorCheckSummaries method

Future<DescribeTrustedAdvisorCheckSummariesResponse> describeTrustedAdvisorCheckSummaries({
  1. required List<String> checkIds,
})

Returns the results for the AWS Trusted Advisor check summaries for the check IDs that you specified. You can get the check IDs by calling the DescribeTrustedAdvisorChecks operation.

The response contains an array of TrustedAdvisorCheckSummary objects.

  • You must have a Business or Enterprise support plan to use the AWS Support API.
  • If you call the AWS Support API from an account that does not have a Business or Enterprise support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see AWS Support.

May throw InternalServerError.

Parameter checkIds : The IDs of the Trusted Advisor checks.

Implementation

Future<DescribeTrustedAdvisorCheckSummariesResponse>
    describeTrustedAdvisorCheckSummaries({
  required List<String> checkIds,
}) async {
  ArgumentError.checkNotNull(checkIds, 'checkIds');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSSupport_20130415.DescribeTrustedAdvisorCheckSummaries'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'checkIds': checkIds,
    },
  );

  return DescribeTrustedAdvisorCheckSummariesResponse.fromJson(
      jsonResponse.body);
}