getRotationOverride method
Retrieves information about an override to 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 overridden rotation to retrieve
information about.
Parameter rotationOverrideId :
The Amazon Resource Name (ARN) of the on-call rotation override to
retrieve information about.
Implementation
Future<GetRotationOverrideResult> getRotationOverride({
required String rotationId,
required String rotationOverrideId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SSMContacts.GetRotationOverride'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'RotationId': rotationId,
'RotationOverrideId': rotationOverrideId,
},
);
return GetRotationOverrideResult.fromJson(jsonResponse.body);
}