getEnrollmentConfiguration method
Retrieves the current enrollment configuration for Compute Optimizer Automation.
May throw AccessDeniedException.
May throw ForbiddenException.
May throw InternalServerException.
May throw InvalidParameterValueException.
May throw OptInRequiredException.
May throw ResourceNotFoundException.
May throw ServiceUnavailableException.
May throw ThrottlingException.
Implementation
Future<GetEnrollmentConfigurationResponse>
getEnrollmentConfiguration() async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target':
'ComputeOptimizerAutomationService.GetEnrollmentConfiguration'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
);
return GetEnrollmentConfigurationResponse.fromJson(jsonResponse.body);
}