getAutomationRule method
Retrieves details about a specific automation rule.
May throw AccessDeniedException.
May throw ForbiddenException.
May throw InternalServerException.
May throw InvalidParameterValueException.
May throw OptInRequiredException.
May throw ResourceNotFoundException.
May throw ServiceUnavailableException.
May throw ThrottlingException.
Parameter ruleArn :
The ARN of the rule to retrieve.
Implementation
Future<GetAutomationRuleResponse> getAutomationRule({
required String ruleArn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'ComputeOptimizerAutomationService.GetAutomationRule'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ruleArn': ruleArn,
},
);
return GetAutomationRuleResponse.fromJson(jsonResponse.body);
}