deleteContact method
Deletes a contact by the contact ARN.
May throw NotFoundException. May throw ConcurrentModificationException.
Parameter contactArn
:
The ARN of the contact to delete.
Implementation
Future<void> deleteContact({
required String contactArn,
}) async {
ArgumentError.checkNotNull(contactArn, 'contactArn');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AlexaForBusiness.DeleteContact'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ContactArn': contactArn,
},
);
}