amazonka-chime-2.0: Amazon Chime SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Chime.UpdatePhoneNumber

Description

Updates phone number details, such as product type or calling name, for the specified phone number ID. You can update one phone number detail at a time. For example, you can update either the product type or the calling name in one action.

For toll-free numbers, you cannot use the Amazon Chime Business Calling product type. For numbers outside the U.S., you must use the Amazon Chime SIP Media Application Dial-In product type.

Updates to outbound calling names can take 72 hours to complete. Pending updates to outbound calling names must be complete before you can request another update.

Synopsis

Creating a Request

data UpdatePhoneNumber Source #

See: newUpdatePhoneNumber smart constructor.

Constructors

UpdatePhoneNumber' 

Fields

Instances

Instances details
ToJSON UpdatePhoneNumber Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

ToHeaders UpdatePhoneNumber Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

ToPath UpdatePhoneNumber Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

ToQuery UpdatePhoneNumber Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

AWSRequest UpdatePhoneNumber Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

Associated Types

type AWSResponse UpdatePhoneNumber #

Generic UpdatePhoneNumber Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

Associated Types

type Rep UpdatePhoneNumber :: Type -> Type #

Show UpdatePhoneNumber Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

NFData UpdatePhoneNumber Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

Methods

rnf :: UpdatePhoneNumber -> () #

Eq UpdatePhoneNumber Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

Hashable UpdatePhoneNumber Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

type AWSResponse UpdatePhoneNumber Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

type Rep UpdatePhoneNumber Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

type Rep UpdatePhoneNumber = D1 ('MetaData "UpdatePhoneNumber" "Amazonka.Chime.UpdatePhoneNumber" "amazonka-chime-2.0-AQIuSSkHccQ9VXokPBc5Nb" 'False) (C1 ('MetaCons "UpdatePhoneNumber'" 'PrefixI 'True) (S1 ('MetaSel ('Just "callingName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: (S1 ('MetaSel ('Just "productType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PhoneNumberProductType)) :*: S1 ('MetaSel ('Just "phoneNumberId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newUpdatePhoneNumber Source #

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:

UpdatePhoneNumber, updatePhoneNumber_callingName - The outbound calling name associated with the phone number.

UpdatePhoneNumber, updatePhoneNumber_productType - The product type.

UpdatePhoneNumber, updatePhoneNumber_phoneNumberId - The phone number ID.

Request Lenses

updatePhoneNumber_callingName :: Lens' UpdatePhoneNumber (Maybe Text) Source #

The outbound calling name associated with the phone number.

Destructuring the Response

data UpdatePhoneNumberResponse Source #

See: newUpdatePhoneNumberResponse smart constructor.

Constructors

UpdatePhoneNumberResponse' 

Fields

Instances

Instances details
Generic UpdatePhoneNumberResponse Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

Associated Types

type Rep UpdatePhoneNumberResponse :: Type -> Type #

Show UpdatePhoneNumberResponse Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

NFData UpdatePhoneNumberResponse Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

Eq UpdatePhoneNumberResponse Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

type Rep UpdatePhoneNumberResponse Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

type Rep UpdatePhoneNumberResponse = D1 ('MetaData "UpdatePhoneNumberResponse" "Amazonka.Chime.UpdatePhoneNumber" "amazonka-chime-2.0-AQIuSSkHccQ9VXokPBc5Nb" 'False) (C1 ('MetaCons "UpdatePhoneNumberResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "phoneNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PhoneNumber)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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_phoneNumber - The updated phone number details.

$sel:httpStatus:UpdatePhoneNumberResponse', updatePhoneNumberResponse_httpStatus - The response's http status code.

Response Lenses