disassociateContactFromAddressBook method
Disassociates a contact from a given address book.
Parameter addressBookArn
:
The ARN of the address from which to disassociate the contact.
Parameter contactArn
:
The ARN of the contact to disassociate from an address book.
Implementation
Future<void> disassociateContactFromAddressBook({
required String addressBookArn,
required String contactArn,
}) async {
ArgumentError.checkNotNull(addressBookArn, 'addressBookArn');
ArgumentError.checkNotNull(contactArn, 'contactArn');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AlexaForBusiness.DisassociateContactFromAddressBook'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'AddressBookArn': addressBookArn,
'ContactArn': contactArn,
},
);
}