describeTrustedAdvisorChecks method

Future<DescribeTrustedAdvisorChecksResponse> describeTrustedAdvisorChecks({
  1. required String language,
})

Returns information about all available AWS Trusted Advisor checks, including the name, ID, category, description, and metadata. You must specify a language code. The AWS Support API currently supports English ("en") and Japanese ("ja"). The response contains a TrustedAdvisorCheckDescription object for each check. You must set the AWS Region to us-east-1.

  • 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 language : The ISO 639-1 code for the language in which AWS provides support. AWS Support currently supports English ("en") and Japanese ("ja"). Language parameters must be passed explicitly for operations that take them.

Implementation

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

  return DescribeTrustedAdvisorChecksResponse.fromJson(jsonResponse.body);
}