| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Chime.AssociatePhoneNumberWithUser
Description
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.
Constructors
| AssociatePhoneNumberWithUser' | |
Instances
newAssociatePhoneNumberWithUser Source #
Arguments
| :: 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:
AssociatePhoneNumberWithUser, associatePhoneNumberWithUser_accountId - The Amazon Chime account ID.
AssociatePhoneNumberWithUser, associatePhoneNumberWithUser_userId - The user ID.
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.
Constructors
| AssociatePhoneNumberWithUserResponse' | |
Fields
| |
Instances
newAssociatePhoneNumberWithUserResponse Source #
Arguments
| :: Int | |
| -> AssociatePhoneNumberWithUserResponse |
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.