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 |
Updates the contact details by the contact ARN.
Synopsis
- data UpdateContact = UpdateContact' {
- lastName :: Maybe Text
- phoneNumbers :: Maybe [PhoneNumber]
- phoneNumber :: Maybe (Sensitive Text)
- sipAddresses :: Maybe [SipAddress]
- firstName :: Maybe Text
- displayName :: Maybe Text
- contactArn :: Text
- newUpdateContact :: Text -> UpdateContact
- updateContact_lastName :: Lens' UpdateContact (Maybe Text)
- updateContact_phoneNumbers :: Lens' UpdateContact (Maybe [PhoneNumber])
- updateContact_phoneNumber :: Lens' UpdateContact (Maybe Text)
- updateContact_sipAddresses :: Lens' UpdateContact (Maybe [SipAddress])
- updateContact_firstName :: Lens' UpdateContact (Maybe Text)
- updateContact_displayName :: Lens' UpdateContact (Maybe Text)
- updateContact_contactArn :: Lens' UpdateContact Text
- data UpdateContactResponse = UpdateContactResponse' {
- httpStatus :: Int
- newUpdateContactResponse :: Int -> UpdateContactResponse
- updateContactResponse_httpStatus :: Lens' UpdateContactResponse Int
Creating a Request
data UpdateContact Source #
See: newUpdateContact
smart constructor.
UpdateContact' | |
|
Instances
Create a value of UpdateContact
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:UpdateContact'
, updateContact_lastName
- The updated last name of the contact.
$sel:phoneNumbers:UpdateContact'
, updateContact_phoneNumbers
- The list of phone numbers for the contact.
$sel:phoneNumber:UpdateContact'
, updateContact_phoneNumber
- The updated phone number of the contact. The phone number type defaults
to WORK. You can either specify PhoneNumber or PhoneNumbers. We
recommend that you use PhoneNumbers, which lets you specify the phone
number type and multiple numbers.
$sel:sipAddresses:UpdateContact'
, updateContact_sipAddresses
- The list of SIP addresses for the contact.
$sel:firstName:UpdateContact'
, updateContact_firstName
- The updated first name of the contact.
$sel:displayName:UpdateContact'
, updateContact_displayName
- The updated display name of the contact.
$sel:contactArn:UpdateContact'
, updateContact_contactArn
- The ARN of the contact to update.
Request Lenses
updateContact_lastName :: Lens' UpdateContact (Maybe Text) Source #
The updated last name of the contact.
updateContact_phoneNumbers :: Lens' UpdateContact (Maybe [PhoneNumber]) Source #
The list of phone numbers for the contact.
updateContact_phoneNumber :: Lens' UpdateContact (Maybe Text) Source #
The updated phone number of the contact. The phone number type defaults to WORK. You can either specify PhoneNumber or PhoneNumbers. We recommend that you use PhoneNumbers, which lets you specify the phone number type and multiple numbers.
updateContact_sipAddresses :: Lens' UpdateContact (Maybe [SipAddress]) Source #
The list of SIP addresses for the contact.
updateContact_firstName :: Lens' UpdateContact (Maybe Text) Source #
The updated first name of the contact.
updateContact_displayName :: Lens' UpdateContact (Maybe Text) Source #
The updated display name of the contact.
updateContact_contactArn :: Lens' UpdateContact Text Source #
The ARN of the contact to update.
Destructuring the Response
data UpdateContactResponse Source #
See: newUpdateContactResponse
smart constructor.
UpdateContactResponse' | |
|
Instances
newUpdateContactResponse Source #
Create a value of UpdateContactResponse
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:UpdateContactResponse'
, updateContactResponse_httpStatus
- The response's http status code.
Response Lenses
updateContactResponse_httpStatus :: Lens' UpdateContactResponse Int Source #
The response's http status code.