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