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 |
Updates your claimed phone number from its current Amazon Connect instance or traffic distribution group to another Amazon Connect instance or traffic distribution group in the same Amazon Web Services Region.
You can call DescribePhoneNumber API to verify the status of a previous UpdatePhoneNumber operation.
Synopsis
- data UpdatePhoneNumber = UpdatePhoneNumber' {
- clientToken :: Maybe Text
- phoneNumberId :: Text
- targetArn :: Text
- newUpdatePhoneNumber :: Text -> Text -> UpdatePhoneNumber
- updatePhoneNumber_clientToken :: Lens' UpdatePhoneNumber (Maybe Text)
- updatePhoneNumber_phoneNumberId :: Lens' UpdatePhoneNumber Text
- updatePhoneNumber_targetArn :: Lens' UpdatePhoneNumber Text
- data UpdatePhoneNumberResponse = UpdatePhoneNumberResponse' {}
- newUpdatePhoneNumberResponse :: Int -> UpdatePhoneNumberResponse
- updatePhoneNumberResponse_phoneNumberArn :: Lens' UpdatePhoneNumberResponse (Maybe Text)
- updatePhoneNumberResponse_phoneNumberId :: Lens' UpdatePhoneNumberResponse (Maybe Text)
- updatePhoneNumberResponse_httpStatus :: Lens' UpdatePhoneNumberResponse Int
Creating a Request
data UpdatePhoneNumber Source #
See: newUpdatePhoneNumber
smart constructor.
UpdatePhoneNumber' | |
|
Instances
Create a value of UpdatePhoneNumber
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:clientToken:UpdatePhoneNumber'
, updatePhoneNumber_clientToken
- A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request. If not provided, the Amazon Web Services SDK
populates this field. For more information about idempotency, see
Making retries safe with idempotent APIs.
UpdatePhoneNumber
, updatePhoneNumber_phoneNumberId
- A unique identifier for the phone number.
UpdatePhoneNumber
, updatePhoneNumber_targetArn
- The Amazon Resource Name (ARN) for Amazon Connect instances or traffic
distribution groups that phone numbers are claimed to.
Request Lenses
updatePhoneNumber_clientToken :: Lens' UpdatePhoneNumber (Maybe Text) Source #
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
updatePhoneNumber_phoneNumberId :: Lens' UpdatePhoneNumber Text Source #
A unique identifier for the phone number.
updatePhoneNumber_targetArn :: Lens' UpdatePhoneNumber Text Source #
The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution groups that phone numbers are claimed to.
Destructuring the Response
data UpdatePhoneNumberResponse Source #
See: newUpdatePhoneNumberResponse
smart constructor.
UpdatePhoneNumberResponse' | |
|
Instances
newUpdatePhoneNumberResponse Source #
Create a value of UpdatePhoneNumberResponse
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:
UpdatePhoneNumberResponse
, updatePhoneNumberResponse_phoneNumberArn
- The Amazon Resource Name (ARN) of the phone number.
UpdatePhoneNumber
, updatePhoneNumberResponse_phoneNumberId
- A unique identifier for the phone number.
$sel:httpStatus:UpdatePhoneNumberResponse'
, updatePhoneNumberResponse_httpStatus
- The response's http status code.
Response Lenses
updatePhoneNumberResponse_phoneNumberArn :: Lens' UpdatePhoneNumberResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the phone number.
updatePhoneNumberResponse_phoneNumberId :: Lens' UpdatePhoneNumberResponse (Maybe Text) Source #
A unique identifier for the phone number.
updatePhoneNumberResponse_httpStatus :: Lens' UpdatePhoneNumberResponse Int Source #
The response's http status code.