libZSservicesZSamazonka-chimeZSamazonka-chime
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Chime.AssociatePhoneNumbersWithVoiceConnector

Description

Associates phone numbers with the specified Amazon Chime Voice Connector.

Synopsis

Creating a Request

data AssociatePhoneNumbersWithVoiceConnector Source #

Constructors

AssociatePhoneNumbersWithVoiceConnector' 

Fields

  • forceAssociate :: Maybe Bool

    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.

  • voiceConnectorId :: Text

    The Amazon Chime Voice Connector ID.

  • e164PhoneNumbers :: [Sensitive Text]

    List of phone numbers, in E.164 format.

Instances

Instances details
Eq AssociatePhoneNumbersWithVoiceConnector Source # 
Instance details

Defined in Amazonka.Chime.AssociatePhoneNumbersWithVoiceConnector

Show AssociatePhoneNumbersWithVoiceConnector Source # 
Instance details

Defined in Amazonka.Chime.AssociatePhoneNumbersWithVoiceConnector

Generic AssociatePhoneNumbersWithVoiceConnector Source # 
Instance details

Defined in Amazonka.Chime.AssociatePhoneNumbersWithVoiceConnector

NFData AssociatePhoneNumbersWithVoiceConnector Source # 
Instance details

Defined in Amazonka.Chime.AssociatePhoneNumbersWithVoiceConnector

Hashable AssociatePhoneNumbersWithVoiceConnector Source # 
Instance details

Defined in Amazonka.Chime.AssociatePhoneNumbersWithVoiceConnector

ToJSON AssociatePhoneNumbersWithVoiceConnector Source # 
Instance details

Defined in Amazonka.Chime.AssociatePhoneNumbersWithVoiceConnector

AWSRequest AssociatePhoneNumbersWithVoiceConnector Source # 
Instance details

Defined in Amazonka.Chime.AssociatePhoneNumbersWithVoiceConnector

ToHeaders AssociatePhoneNumbersWithVoiceConnector Source # 
Instance details

Defined in Amazonka.Chime.AssociatePhoneNumbersWithVoiceConnector

ToPath AssociatePhoneNumbersWithVoiceConnector Source # 
Instance details

Defined in Amazonka.Chime.AssociatePhoneNumbersWithVoiceConnector

ToQuery AssociatePhoneNumbersWithVoiceConnector Source # 
Instance details

Defined in Amazonka.Chime.AssociatePhoneNumbersWithVoiceConnector

type Rep AssociatePhoneNumbersWithVoiceConnector Source # 
Instance details

Defined in Amazonka.Chime.AssociatePhoneNumbersWithVoiceConnector

type Rep AssociatePhoneNumbersWithVoiceConnector = D1 ('MetaData "AssociatePhoneNumbersWithVoiceConnector" "Amazonka.Chime.AssociatePhoneNumbersWithVoiceConnector" "libZSservicesZSamazonka-chimeZSamazonka-chime" 'False) (C1 ('MetaCons "AssociatePhoneNumbersWithVoiceConnector'" 'PrefixI 'True) (S1 ('MetaSel ('Just "forceAssociate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "voiceConnectorId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "e164PhoneNumbers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Sensitive Text]))))
type AWSResponse AssociatePhoneNumbersWithVoiceConnector Source # 
Instance details

Defined in Amazonka.Chime.AssociatePhoneNumbersWithVoiceConnector

newAssociatePhoneNumbersWithVoiceConnector Source #

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.

Destructuring the Response

data AssociatePhoneNumbersWithVoiceConnectorResponse Source #

Constructors

AssociatePhoneNumbersWithVoiceConnectorResponse' 

Fields

Instances

Instances details
Eq AssociatePhoneNumbersWithVoiceConnectorResponse Source # 
Instance details

Defined in Amazonka.Chime.AssociatePhoneNumbersWithVoiceConnector

Read AssociatePhoneNumbersWithVoiceConnectorResponse Source # 
Instance details

Defined in Amazonka.Chime.AssociatePhoneNumbersWithVoiceConnector

Show AssociatePhoneNumbersWithVoiceConnectorResponse Source # 
Instance details

Defined in Amazonka.Chime.AssociatePhoneNumbersWithVoiceConnector

Generic AssociatePhoneNumbersWithVoiceConnectorResponse Source # 
Instance details

Defined in Amazonka.Chime.AssociatePhoneNumbersWithVoiceConnector

NFData AssociatePhoneNumbersWithVoiceConnectorResponse Source # 
Instance details

Defined in Amazonka.Chime.AssociatePhoneNumbersWithVoiceConnector

type Rep AssociatePhoneNumbersWithVoiceConnectorResponse Source # 
Instance details

Defined in Amazonka.Chime.AssociatePhoneNumbersWithVoiceConnector

type Rep AssociatePhoneNumbersWithVoiceConnectorResponse = D1 ('MetaData "AssociatePhoneNumbersWithVoiceConnectorResponse" "Amazonka.Chime.AssociatePhoneNumbersWithVoiceConnector" "libZSservicesZSamazonka-chimeZSamazonka-chime" 'False) (C1 ('MetaCons "AssociatePhoneNumbersWithVoiceConnectorResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "phoneNumberErrors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PhoneNumberError])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAssociatePhoneNumbersWithVoiceConnectorResponse Source #

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.