getRotation method
Retrieves information about an on-call rotation.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter rotationId :
The Amazon Resource Name (ARN) of the on-call rotation to retrieve
information about.
Implementation
Future<GetRotationResult> getRotation({
required String rotationId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SSMContacts.GetRotation'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'RotationId': rotationId,
},
);
return GetRotationResult.fromJson(jsonResponse.body);
}