Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates a contact with the specified details.
Synopsis
- createContact :: Text -> Text -> CreateContact
- data CreateContact
- ccLastName :: Lens' CreateContact (Maybe Text)
- ccDisplayName :: Lens' CreateContact (Maybe Text)
- ccClientRequestToken :: Lens' CreateContact (Maybe Text)
- ccFirstName :: Lens' CreateContact Text
- ccPhoneNumber :: Lens' CreateContact Text
- createContactResponse :: Int -> CreateContactResponse
- data CreateContactResponse
- ccrsContactARN :: Lens' CreateContactResponse (Maybe Text)
- ccrsResponseStatus :: Lens' CreateContactResponse Int
Creating a Request
Creates a value of CreateContact
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ccLastName
- The last name of the contact that is used to call the contact on the device.ccDisplayName
- The name of the contact to display on the console.ccClientRequestToken
- A unique, user-specified identifier for this request that ensures idempotency.ccFirstName
- The first name of the contact that is used to call the contact on the device.ccPhoneNumber
- The phone number of the contact in E.164 format.
data CreateContact Source #
See: createContact
smart constructor.
Instances
Request Lenses
ccLastName :: Lens' CreateContact (Maybe Text) Source #
The last name of the contact that is used to call the contact on the device.
ccDisplayName :: Lens' CreateContact (Maybe Text) Source #
The name of the contact to display on the console.
ccClientRequestToken :: Lens' CreateContact (Maybe Text) Source #
A unique, user-specified identifier for this request that ensures idempotency.
ccFirstName :: Lens' CreateContact Text Source #
The first name of the contact that is used to call the contact on the device.
ccPhoneNumber :: Lens' CreateContact Text Source #
The phone number of the contact in E.164 format.
Destructuring the Response
createContactResponse Source #
Creates a value of CreateContactResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ccrsContactARN
- The ARN of the newly created address book.ccrsResponseStatus
- -- | The response status code.
data CreateContactResponse Source #
See: createContactResponse
smart constructor.
Instances
Response Lenses
ccrsContactARN :: Lens' CreateContactResponse (Maybe Text) Source #
The ARN of the newly created address book.
ccrsResponseStatus :: Lens' CreateContactResponse Int Source #
- - | The response status code.