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.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
Eq UpdatePhoneNumber Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

Show UpdatePhoneNumber Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

Generic UpdatePhoneNumber Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

Associated Types

type Rep UpdatePhoneNumber :: Type -> Type #

NFData UpdatePhoneNumber Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

Methods

rnf :: UpdatePhoneNumber -> () #

Hashable UpdatePhoneNumber Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

ToJSON UpdatePhoneNumber Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

AWSRequest UpdatePhoneNumber Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

Associated Types

type AWSResponse 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

type Rep UpdatePhoneNumber Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

type Rep UpdatePhoneNumber = D1 ('MetaData "UpdatePhoneNumber" "Amazonka.Chime.UpdatePhoneNumber" "libZSservicesZSamazonka-chimeZSamazonka-chime" 'False) (C1 ('MetaCons "UpdatePhoneNumber'" 'PrefixI 'True) (S1 ('MetaSel ('Just "productType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PhoneNumberProductType)) :*: (S1 ('MetaSel ('Just "callingName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 ('MetaSel ('Just "phoneNumberId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse UpdatePhoneNumber Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

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:

$sel:productType:UpdatePhoneNumber', updatePhoneNumber_productType - The product type.

$sel:callingName:UpdatePhoneNumber', updatePhoneNumber_callingName - The outbound calling name associated with the phone number.

$sel:phoneNumberId: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
Eq UpdatePhoneNumberResponse Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

Show UpdatePhoneNumberResponse Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

Generic UpdatePhoneNumberResponse Source # 
Instance details

Defined in Amazonka.Chime.UpdatePhoneNumber

Associated Types

type Rep UpdatePhoneNumberResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-chimeZSamazonka-chime" '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:

$sel:phoneNumber:UpdatePhoneNumberResponse', updatePhoneNumberResponse_phoneNumber - The updated phone number details.

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

Response Lenses