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 |
Creates an order for phone numbers to be provisioned. 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.
Synopsis
- data CreatePhoneNumberOrder = CreatePhoneNumberOrder' {}
- newCreatePhoneNumberOrder :: PhoneNumberProductType -> CreatePhoneNumberOrder
- createPhoneNumberOrder_productType :: Lens' CreatePhoneNumberOrder PhoneNumberProductType
- createPhoneNumberOrder_e164PhoneNumbers :: Lens' CreatePhoneNumberOrder [Text]
- data CreatePhoneNumberOrderResponse = CreatePhoneNumberOrderResponse' {}
- newCreatePhoneNumberOrderResponse :: Int -> CreatePhoneNumberOrderResponse
- createPhoneNumberOrderResponse_phoneNumberOrder :: Lens' CreatePhoneNumberOrderResponse (Maybe PhoneNumberOrder)
- createPhoneNumberOrderResponse_httpStatus :: Lens' CreatePhoneNumberOrderResponse Int
Creating a Request
data CreatePhoneNumberOrder Source #
See: newCreatePhoneNumberOrder
smart constructor.
CreatePhoneNumberOrder' | |
|
Instances
newCreatePhoneNumberOrder Source #
Create a value of CreatePhoneNumberOrder
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:CreatePhoneNumberOrder'
, createPhoneNumberOrder_productType
- The phone number product type.
$sel:e164PhoneNumbers:CreatePhoneNumberOrder'
, createPhoneNumberOrder_e164PhoneNumbers
- List of phone numbers, in E.164 format.
Request Lenses
createPhoneNumberOrder_productType :: Lens' CreatePhoneNumberOrder PhoneNumberProductType Source #
The phone number product type.
createPhoneNumberOrder_e164PhoneNumbers :: Lens' CreatePhoneNumberOrder [Text] Source #
List of phone numbers, in E.164 format.
Destructuring the Response
data CreatePhoneNumberOrderResponse Source #
See: newCreatePhoneNumberOrderResponse
smart constructor.
CreatePhoneNumberOrderResponse' | |
|
Instances
Eq CreatePhoneNumberOrderResponse Source # | |
Show CreatePhoneNumberOrderResponse Source # | |
Defined in Amazonka.Chime.CreatePhoneNumberOrder | |
Generic CreatePhoneNumberOrderResponse Source # | |
NFData CreatePhoneNumberOrderResponse Source # | |
Defined in Amazonka.Chime.CreatePhoneNumberOrder rnf :: CreatePhoneNumberOrderResponse -> () # | |
type Rep CreatePhoneNumberOrderResponse Source # | |
Defined in Amazonka.Chime.CreatePhoneNumberOrder type Rep CreatePhoneNumberOrderResponse = D1 ('MetaData "CreatePhoneNumberOrderResponse" "Amazonka.Chime.CreatePhoneNumberOrder" "libZSservicesZSamazonka-chimeZSamazonka-chime" 'False) (C1 ('MetaCons "CreatePhoneNumberOrderResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "phoneNumberOrder") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PhoneNumberOrder)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreatePhoneNumberOrderResponse Source #
Create a value of CreatePhoneNumberOrderResponse
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:phoneNumberOrder:CreatePhoneNumberOrderResponse'
, createPhoneNumberOrderResponse_phoneNumberOrder
- The phone number order details.
$sel:httpStatus:CreatePhoneNumberOrderResponse'
, createPhoneNumberOrderResponse_httpStatus
- The response's http status code.
Response Lenses
createPhoneNumberOrderResponse_phoneNumberOrder :: Lens' CreatePhoneNumberOrderResponse (Maybe PhoneNumberOrder) Source #
The phone number order details.
createPhoneNumberOrderResponse_httpStatus :: Lens' CreatePhoneNumberOrderResponse Int Source #
The response's http status code.