refreshTrustedAdvisorCheck method
Refreshes the AWS Trusted Advisor check that you specify using the check ID. You can get the check IDs by calling the DescribeTrustedAdvisorChecks operation. The response contains a TrustedAdvisorCheckRefreshStatus object.
- 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 checkId
:
The unique identifier for the Trusted Advisor check to refresh.
Note: Specifying the check ID of a check that is automatically
refreshed causes an InvalidParameterValue
error.
Implementation
Future<RefreshTrustedAdvisorCheckResponse> refreshTrustedAdvisorCheck({
required String checkId,
}) async {
ArgumentError.checkNotNull(checkId, 'checkId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSSupport_20130415.RefreshTrustedAdvisorCheck'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'checkId': checkId,
},
);
return RefreshTrustedAdvisorCheckResponse.fromJson(jsonResponse.body);
}