| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.AlexaBusiness.AssociateContactWithAddressBook
Description
Associates a contact with a given address book.
Synopsis
- data AssociateContactWithAddressBook = AssociateContactWithAddressBook' {
- contactArn :: Text
- addressBookArn :: Text
- newAssociateContactWithAddressBook :: Text -> Text -> AssociateContactWithAddressBook
- associateContactWithAddressBook_contactArn :: Lens' AssociateContactWithAddressBook Text
- associateContactWithAddressBook_addressBookArn :: Lens' AssociateContactWithAddressBook Text
- data AssociateContactWithAddressBookResponse = AssociateContactWithAddressBookResponse' {
- httpStatus :: Int
- newAssociateContactWithAddressBookResponse :: Int -> AssociateContactWithAddressBookResponse
- associateContactWithAddressBookResponse_httpStatus :: Lens' AssociateContactWithAddressBookResponse Int
Creating a Request
data AssociateContactWithAddressBook Source #
See: newAssociateContactWithAddressBook smart constructor.
Constructors
| AssociateContactWithAddressBook' | |
Fields
| |
Instances
newAssociateContactWithAddressBook Source #
Arguments
| :: Text | |
| -> Text | |
| -> AssociateContactWithAddressBook |
Create a value of AssociateContactWithAddressBook with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
AssociateContactWithAddressBook, associateContactWithAddressBook_contactArn - The ARN of the contact to associate with an address book.
AssociateContactWithAddressBook, associateContactWithAddressBook_addressBookArn - The ARN of the address book with which to associate the contact.
Request Lenses
associateContactWithAddressBook_contactArn :: Lens' AssociateContactWithAddressBook Text Source #
The ARN of the contact to associate with an address book.
associateContactWithAddressBook_addressBookArn :: Lens' AssociateContactWithAddressBook Text Source #
The ARN of the address book with which to associate the contact.
Destructuring the Response
data AssociateContactWithAddressBookResponse Source #
See: newAssociateContactWithAddressBookResponse smart constructor.
Constructors
| AssociateContactWithAddressBookResponse' | |
Fields
| |
Instances
newAssociateContactWithAddressBookResponse Source #
Arguments
| :: Int | |
| -> AssociateContactWithAddressBookResponse |
Create a value of AssociateContactWithAddressBookResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:AssociateContactWithAddressBookResponse', associateContactWithAddressBookResponse_httpStatus - The response's http status code.
Response Lenses
associateContactWithAddressBookResponse_httpStatus :: Lens' AssociateContactWithAddressBookResponse Int Source #
The response's http status code.