getAddressBook method
Gets address the book details by the address book ARN.
May throw NotFoundException.
Parameter addressBookArn
:
The ARN of the address book for which to request details.
Implementation
Future<GetAddressBookResponse> getAddressBook({
required String addressBookArn,
}) async {
ArgumentError.checkNotNull(addressBookArn, 'addressBookArn');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AlexaForBusiness.GetAddressBook'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'AddressBookArn': addressBookArn,
},
);
return GetAddressBookResponse.fromJson(jsonResponse.body);
}