describeTrustedAdvisorCheckRefreshStatuses method

Future<DescribeTrustedAdvisorCheckRefreshStatusesResponse> describeTrustedAdvisorCheckRefreshStatuses({
  1. required List<String> checkIds,
})

Returns the refresh status of the AWS Trusted Advisor checks that have the specified check IDs. You can get the check IDs by calling the DescribeTrustedAdvisorChecks operation.

Some checks are refreshed automatically, and you can't return their refresh statuses by using the DescribeTrustedAdvisorCheckRefreshStatuses operation. If you call this operation for these checks, you might see an InvalidParameterValue error.

  • 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 to get the status of.

Implementation

Future<DescribeTrustedAdvisorCheckRefreshStatusesResponse>
    describeTrustedAdvisorCheckRefreshStatuses({
  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.DescribeTrustedAdvisorCheckRefreshStatuses'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'checkIds': checkIds,
    },
  );

  return DescribeTrustedAdvisorCheckRefreshStatusesResponse.fromJson(
      jsonResponse.body);
}