Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
AssociateContactWithAddressBook' | |
|
Instances
newAssociateContactWithAddressBook Source #
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:
$sel:contactArn:AssociateContactWithAddressBook'
, associateContactWithAddressBook_contactArn
- The ARN of the contact to associate with an address book.
$sel:addressBookArn: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.
AssociateContactWithAddressBookResponse' | |
|
Instances
Eq AssociateContactWithAddressBookResponse Source # | |
Read AssociateContactWithAddressBookResponse Source # | |
Show AssociateContactWithAddressBookResponse Source # | |
Generic AssociateContactWithAddressBookResponse Source # | |
Defined in Amazonka.AlexaBusiness.AssociateContactWithAddressBook type Rep AssociateContactWithAddressBookResponse :: Type -> Type # | |
NFData AssociateContactWithAddressBookResponse Source # | |
type Rep AssociateContactWithAddressBookResponse Source # | |
Defined in Amazonka.AlexaBusiness.AssociateContactWithAddressBook type Rep AssociateContactWithAddressBookResponse = D1 ('MetaData "AssociateContactWithAddressBookResponse" "Amazonka.AlexaBusiness.AssociateContactWithAddressBook" "libZSservicesZSamazonka-alexa-businessZSamazonka-alexa-business" 'False) (C1 ('MetaCons "AssociateContactWithAddressBookResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newAssociateContactWithAddressBookResponse Source #
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.