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 |
Creates a contact with the specified details.
Synopsis
- data CreateContact = CreateContact' {
- lastName :: Maybe Text
- phoneNumbers :: Maybe [PhoneNumber]
- phoneNumber :: Maybe (Sensitive Text)
- sipAddresses :: Maybe [SipAddress]
- displayName :: Maybe Text
- clientRequestToken :: Maybe Text
- tags :: Maybe [Tag]
- firstName :: Text
- newCreateContact :: Text -> CreateContact
- createContact_lastName :: Lens' CreateContact (Maybe Text)
- createContact_phoneNumbers :: Lens' CreateContact (Maybe [PhoneNumber])
- createContact_phoneNumber :: Lens' CreateContact (Maybe Text)
- createContact_sipAddresses :: Lens' CreateContact (Maybe [SipAddress])
- createContact_displayName :: Lens' CreateContact (Maybe Text)
- createContact_clientRequestToken :: Lens' CreateContact (Maybe Text)
- createContact_tags :: Lens' CreateContact (Maybe [Tag])
- createContact_firstName :: Lens' CreateContact Text
- data CreateContactResponse = CreateContactResponse' {
- contactArn :: Maybe Text
- httpStatus :: Int
- newCreateContactResponse :: Int -> CreateContactResponse
- createContactResponse_contactArn :: Lens' CreateContactResponse (Maybe Text)
- createContactResponse_httpStatus :: Lens' CreateContactResponse Int
Creating a Request
data CreateContact Source #
See: newCreateContact
smart constructor.
CreateContact' | |
|
Instances
Create a value of CreateContact
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:lastName:CreateContact'
, createContact_lastName
- The last name of the contact that is used to call the contact on the
device.
$sel:phoneNumbers:CreateContact'
, createContact_phoneNumbers
- The list of phone numbers for the contact.
$sel:phoneNumber:CreateContact'
, createContact_phoneNumber
- The phone number of the contact in E.164 format. The phone number type
defaults to WORK. You can specify PhoneNumber or PhoneNumbers. We
recommend that you use PhoneNumbers, which lets you specify the phone
number type and multiple numbers.
$sel:sipAddresses:CreateContact'
, createContact_sipAddresses
- The list of SIP addresses for the contact.
$sel:displayName:CreateContact'
, createContact_displayName
- The name of the contact to display on the console.
$sel:clientRequestToken:CreateContact'
, createContact_clientRequestToken
- A unique, user-specified identifier for this request that ensures
idempotency.
$sel:tags:CreateContact'
, createContact_tags
- The tags to be added to the specified resource. Do not provide system
tags.
$sel:firstName:CreateContact'
, createContact_firstName
- The first name of the contact that is used to call the contact on the
device.
Request Lenses
createContact_lastName :: Lens' CreateContact (Maybe Text) Source #
The last name of the contact that is used to call the contact on the device.
createContact_phoneNumbers :: Lens' CreateContact (Maybe [PhoneNumber]) Source #
The list of phone numbers for the contact.
createContact_phoneNumber :: Lens' CreateContact (Maybe Text) Source #
The phone number of the contact in E.164 format. The phone number type defaults to WORK. You can specify PhoneNumber or PhoneNumbers. We recommend that you use PhoneNumbers, which lets you specify the phone number type and multiple numbers.
createContact_sipAddresses :: Lens' CreateContact (Maybe [SipAddress]) Source #
The list of SIP addresses for the contact.
createContact_displayName :: Lens' CreateContact (Maybe Text) Source #
The name of the contact to display on the console.
createContact_clientRequestToken :: Lens' CreateContact (Maybe Text) Source #
A unique, user-specified identifier for this request that ensures idempotency.
createContact_tags :: Lens' CreateContact (Maybe [Tag]) Source #
The tags to be added to the specified resource. Do not provide system tags.
createContact_firstName :: Lens' CreateContact Text Source #
The first name of the contact that is used to call the contact on the device.
Destructuring the Response
data CreateContactResponse Source #
See: newCreateContactResponse
smart constructor.
CreateContactResponse' | |
|
Instances
newCreateContactResponse Source #
Create a value of CreateContactResponse
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:CreateContactResponse'
, createContactResponse_contactArn
- The ARN of the newly created address book.
$sel:httpStatus:CreateContactResponse'
, createContactResponse_httpStatus
- The response's http status code.
Response Lenses
createContactResponse_contactArn :: Lens' CreateContactResponse (Maybe Text) Source #
The ARN of the newly created address book.
createContactResponse_httpStatus :: Lens' CreateContactResponse Int Source #
The response's http status code.