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 phone numbers with the specified Amazon Chime Voice Connector.
Synopsis
- data AssociatePhoneNumbersWithVoiceConnector = AssociatePhoneNumbersWithVoiceConnector' {}
- newAssociatePhoneNumbersWithVoiceConnector :: Text -> AssociatePhoneNumbersWithVoiceConnector
- associatePhoneNumbersWithVoiceConnector_forceAssociate :: Lens' AssociatePhoneNumbersWithVoiceConnector (Maybe Bool)
- associatePhoneNumbersWithVoiceConnector_voiceConnectorId :: Lens' AssociatePhoneNumbersWithVoiceConnector Text
- associatePhoneNumbersWithVoiceConnector_e164PhoneNumbers :: Lens' AssociatePhoneNumbersWithVoiceConnector [Text]
- data AssociatePhoneNumbersWithVoiceConnectorResponse = AssociatePhoneNumbersWithVoiceConnectorResponse' {}
- newAssociatePhoneNumbersWithVoiceConnectorResponse :: Int -> AssociatePhoneNumbersWithVoiceConnectorResponse
- associatePhoneNumbersWithVoiceConnectorResponse_phoneNumberErrors :: Lens' AssociatePhoneNumbersWithVoiceConnectorResponse (Maybe [PhoneNumberError])
- associatePhoneNumbersWithVoiceConnectorResponse_httpStatus :: Lens' AssociatePhoneNumbersWithVoiceConnectorResponse Int
Creating a Request
data AssociatePhoneNumbersWithVoiceConnector Source #
See: newAssociatePhoneNumbersWithVoiceConnector
smart constructor.
AssociatePhoneNumbersWithVoiceConnector' | |
|
Instances
newAssociatePhoneNumbersWithVoiceConnector Source #
:: Text |
|
-> AssociatePhoneNumbersWithVoiceConnector |
Create a value of AssociatePhoneNumbersWithVoiceConnector
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:forceAssociate:AssociatePhoneNumbersWithVoiceConnector'
, associatePhoneNumbersWithVoiceConnector_forceAssociate
- If true, associates the provided phone numbers with the provided Amazon
Chime Voice Connector and removes any previously existing associations.
If false, does not associate any phone numbers that have previously
existing associations.
$sel:voiceConnectorId:AssociatePhoneNumbersWithVoiceConnector'
, associatePhoneNumbersWithVoiceConnector_voiceConnectorId
- The Amazon Chime Voice Connector ID.
$sel:e164PhoneNumbers:AssociatePhoneNumbersWithVoiceConnector'
, associatePhoneNumbersWithVoiceConnector_e164PhoneNumbers
- List of phone numbers, in E.164 format.
Request Lenses
associatePhoneNumbersWithVoiceConnector_forceAssociate :: Lens' AssociatePhoneNumbersWithVoiceConnector (Maybe Bool) Source #
If true, associates the provided phone numbers with the provided Amazon Chime Voice Connector and removes any previously existing associations. If false, does not associate any phone numbers that have previously existing associations.
associatePhoneNumbersWithVoiceConnector_voiceConnectorId :: Lens' AssociatePhoneNumbersWithVoiceConnector Text Source #
The Amazon Chime Voice Connector ID.
associatePhoneNumbersWithVoiceConnector_e164PhoneNumbers :: Lens' AssociatePhoneNumbersWithVoiceConnector [Text] Source #
List of phone numbers, in E.164 format.
Destructuring the Response
data AssociatePhoneNumbersWithVoiceConnectorResponse Source #
See: newAssociatePhoneNumbersWithVoiceConnectorResponse
smart constructor.
AssociatePhoneNumbersWithVoiceConnectorResponse' | |
|
Instances
newAssociatePhoneNumbersWithVoiceConnectorResponse Source #
:: Int |
|
-> AssociatePhoneNumbersWithVoiceConnectorResponse |
Create a value of AssociatePhoneNumbersWithVoiceConnectorResponse
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:phoneNumberErrors:AssociatePhoneNumbersWithVoiceConnectorResponse'
, associatePhoneNumbersWithVoiceConnectorResponse_phoneNumberErrors
- If the action fails for one or more of the phone numbers in the request,
a list of the phone numbers is returned, along with error codes and
error messages.
$sel:httpStatus:AssociatePhoneNumbersWithVoiceConnectorResponse'
, associatePhoneNumbersWithVoiceConnectorResponse_httpStatus
- The response's http status code.
Response Lenses
associatePhoneNumbersWithVoiceConnectorResponse_phoneNumberErrors :: Lens' AssociatePhoneNumbersWithVoiceConnectorResponse (Maybe [PhoneNumberError]) Source #
If the action fails for one or more of the phone numbers in the request, a list of the phone numbers is returned, along with error codes and error messages.
associatePhoneNumbersWithVoiceConnectorResponse_httpStatus :: Lens' AssociatePhoneNumbersWithVoiceConnectorResponse Int Source #
The response's http status code.