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 phone number with the specified Amazon Chime user.
Synopsis
- data AssociatePhoneNumberWithUser = AssociatePhoneNumberWithUser' {}
- newAssociatePhoneNumberWithUser :: Text -> Text -> Text -> AssociatePhoneNumberWithUser
- associatePhoneNumberWithUser_accountId :: Lens' AssociatePhoneNumberWithUser Text
- associatePhoneNumberWithUser_userId :: Lens' AssociatePhoneNumberWithUser Text
- associatePhoneNumberWithUser_e164PhoneNumber :: Lens' AssociatePhoneNumberWithUser Text
- data AssociatePhoneNumberWithUserResponse = AssociatePhoneNumberWithUserResponse' {
- httpStatus :: Int
- newAssociatePhoneNumberWithUserResponse :: Int -> AssociatePhoneNumberWithUserResponse
- associatePhoneNumberWithUserResponse_httpStatus :: Lens' AssociatePhoneNumberWithUserResponse Int
Creating a Request
data AssociatePhoneNumberWithUser Source #
See: newAssociatePhoneNumberWithUser
smart constructor.
Instances
newAssociatePhoneNumberWithUser Source #
:: Text | |
-> Text | |
-> Text | |
-> AssociatePhoneNumberWithUser |
Create a value of AssociatePhoneNumberWithUser
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:accountId:AssociatePhoneNumberWithUser'
, associatePhoneNumberWithUser_accountId
- The Amazon Chime account ID.
$sel:userId:AssociatePhoneNumberWithUser'
, associatePhoneNumberWithUser_userId
- The user ID.
$sel:e164PhoneNumber:AssociatePhoneNumberWithUser'
, associatePhoneNumberWithUser_e164PhoneNumber
- The phone number, in E.164 format.
Request Lenses
associatePhoneNumberWithUser_accountId :: Lens' AssociatePhoneNumberWithUser Text Source #
The Amazon Chime account ID.
associatePhoneNumberWithUser_userId :: Lens' AssociatePhoneNumberWithUser Text Source #
The user ID.
associatePhoneNumberWithUser_e164PhoneNumber :: Lens' AssociatePhoneNumberWithUser Text Source #
The phone number, in E.164 format.
Destructuring the Response
data AssociatePhoneNumberWithUserResponse Source #
See: newAssociatePhoneNumberWithUserResponse
smart constructor.
AssociatePhoneNumberWithUserResponse' | |
|
Instances
newAssociatePhoneNumberWithUserResponse Source #
Create a value of AssociatePhoneNumberWithUserResponse
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:AssociatePhoneNumberWithUserResponse'
, associatePhoneNumberWithUserResponse_httpStatus
- The response's http status code.
Response Lenses
associatePhoneNumberWithUserResponse_httpStatus :: Lens' AssociatePhoneNumberWithUserResponse Int Source #
The response's http status code.