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