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 group.
Synopsis
- data AssociatePhoneNumbersWithVoiceConnectorGroup = AssociatePhoneNumbersWithVoiceConnectorGroup' {}
- newAssociatePhoneNumbersWithVoiceConnectorGroup :: Text -> AssociatePhoneNumbersWithVoiceConnectorGroup
- associatePhoneNumbersWithVoiceConnectorGroup_forceAssociate :: Lens' AssociatePhoneNumbersWithVoiceConnectorGroup (Maybe Bool)
- associatePhoneNumbersWithVoiceConnectorGroup_voiceConnectorGroupId :: Lens' AssociatePhoneNumbersWithVoiceConnectorGroup Text
- associatePhoneNumbersWithVoiceConnectorGroup_e164PhoneNumbers :: Lens' AssociatePhoneNumbersWithVoiceConnectorGroup [Text]
- data AssociatePhoneNumbersWithVoiceConnectorGroupResponse = AssociatePhoneNumbersWithVoiceConnectorGroupResponse' {}
- newAssociatePhoneNumbersWithVoiceConnectorGroupResponse :: Int -> AssociatePhoneNumbersWithVoiceConnectorGroupResponse
- associatePhoneNumbersWithVoiceConnectorGroupResponse_phoneNumberErrors :: Lens' AssociatePhoneNumbersWithVoiceConnectorGroupResponse (Maybe [PhoneNumberError])
- associatePhoneNumbersWithVoiceConnectorGroupResponse_httpStatus :: Lens' AssociatePhoneNumbersWithVoiceConnectorGroupResponse Int
Creating a Request
data AssociatePhoneNumbersWithVoiceConnectorGroup Source #
See: newAssociatePhoneNumbersWithVoiceConnectorGroup
smart constructor.
AssociatePhoneNumbersWithVoiceConnectorGroup' | |
|
Instances
newAssociatePhoneNumbersWithVoiceConnectorGroup Source #
:: Text |
|
-> AssociatePhoneNumbersWithVoiceConnectorGroup |
Create a value of AssociatePhoneNumbersWithVoiceConnectorGroup
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:AssociatePhoneNumbersWithVoiceConnectorGroup'
, associatePhoneNumbersWithVoiceConnectorGroup_forceAssociate
- If true, associates the provided phone numbers with the provided Amazon
Chime Voice Connector Group and removes any previously existing
associations. If false, does not associate any phone numbers that have
previously existing associations.
$sel:voiceConnectorGroupId:AssociatePhoneNumbersWithVoiceConnectorGroup'
, associatePhoneNumbersWithVoiceConnectorGroup_voiceConnectorGroupId
- The Amazon Chime Voice Connector group ID.
$sel:e164PhoneNumbers:AssociatePhoneNumbersWithVoiceConnectorGroup'
, associatePhoneNumbersWithVoiceConnectorGroup_e164PhoneNumbers
- List of phone numbers, in E.164 format.
Request Lenses
associatePhoneNumbersWithVoiceConnectorGroup_forceAssociate :: Lens' AssociatePhoneNumbersWithVoiceConnectorGroup (Maybe Bool) Source #
If true, associates the provided phone numbers with the provided Amazon Chime Voice Connector Group and removes any previously existing associations. If false, does not associate any phone numbers that have previously existing associations.
associatePhoneNumbersWithVoiceConnectorGroup_voiceConnectorGroupId :: Lens' AssociatePhoneNumbersWithVoiceConnectorGroup Text Source #
The Amazon Chime Voice Connector group ID.
associatePhoneNumbersWithVoiceConnectorGroup_e164PhoneNumbers :: Lens' AssociatePhoneNumbersWithVoiceConnectorGroup [Text] Source #
List of phone numbers, in E.164 format.
Destructuring the Response
data AssociatePhoneNumbersWithVoiceConnectorGroupResponse Source #
See: newAssociatePhoneNumbersWithVoiceConnectorGroupResponse
smart constructor.
AssociatePhoneNumbersWithVoiceConnectorGroupResponse' | |
|
Instances
newAssociatePhoneNumbersWithVoiceConnectorGroupResponse Source #
:: Int |
|
-> AssociatePhoneNumbersWithVoiceConnectorGroupResponse |
Create a value of AssociatePhoneNumbersWithVoiceConnectorGroupResponse
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:AssociatePhoneNumbersWithVoiceConnectorGroupResponse'
, associatePhoneNumbersWithVoiceConnectorGroupResponse_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:AssociatePhoneNumbersWithVoiceConnectorGroupResponse'
, associatePhoneNumbersWithVoiceConnectorGroupResponse_httpStatus
- The response's http status code.
Response Lenses
associatePhoneNumbersWithVoiceConnectorGroupResponse_phoneNumberErrors :: Lens' AssociatePhoneNumbersWithVoiceConnectorGroupResponse (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.
associatePhoneNumbersWithVoiceConnectorGroupResponse_httpStatus :: Lens' AssociatePhoneNumbersWithVoiceConnectorGroupResponse Int Source #
The response's http status code.