getContact method
Retrieves information about the specified contact or escalation plan.
May throw AccessDeniedException.
May throw DataEncryptionException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter contactId :
The Amazon Resource Name (ARN) of the contact or escalation plan.
Implementation
Future<GetContactResult> getContact({
required String contactId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SSMContacts.GetContact'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ContactId': contactId,
},
);
return GetContactResult.fromJson(jsonResponse.body);
}