Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Releases an existing origination phone number in your account. Once released, a phone number is no longer available for sending messages.
If the origination phone number has deletion protection enabled or is associated with a pool, an Error is returned.
Synopsis
- data ReleasePhoneNumber = ReleasePhoneNumber' {}
- newReleasePhoneNumber :: Text -> ReleasePhoneNumber
- releasePhoneNumber_phoneNumberId :: Lens' ReleasePhoneNumber Text
- data ReleasePhoneNumberResponse = ReleasePhoneNumberResponse' {
- createdTimestamp :: Maybe POSIX
- isoCountryCode :: Maybe Text
- messageType :: Maybe MessageType
- monthlyLeasingPrice :: Maybe Text
- numberCapabilities :: Maybe (NonEmpty NumberCapability)
- numberType :: Maybe NumberType
- optOutListName :: Maybe Text
- phoneNumber :: Maybe Text
- phoneNumberArn :: Maybe Text
- phoneNumberId :: Maybe Text
- selfManagedOptOutsEnabled :: Maybe Bool
- status :: Maybe NumberStatus
- twoWayChannelArn :: Maybe Text
- twoWayEnabled :: Maybe Bool
- httpStatus :: Int
- newReleasePhoneNumberResponse :: Int -> ReleasePhoneNumberResponse
- releasePhoneNumberResponse_createdTimestamp :: Lens' ReleasePhoneNumberResponse (Maybe UTCTime)
- releasePhoneNumberResponse_isoCountryCode :: Lens' ReleasePhoneNumberResponse (Maybe Text)
- releasePhoneNumberResponse_messageType :: Lens' ReleasePhoneNumberResponse (Maybe MessageType)
- releasePhoneNumberResponse_monthlyLeasingPrice :: Lens' ReleasePhoneNumberResponse (Maybe Text)
- releasePhoneNumberResponse_numberCapabilities :: Lens' ReleasePhoneNumberResponse (Maybe (NonEmpty NumberCapability))
- releasePhoneNumberResponse_numberType :: Lens' ReleasePhoneNumberResponse (Maybe NumberType)
- releasePhoneNumberResponse_optOutListName :: Lens' ReleasePhoneNumberResponse (Maybe Text)
- releasePhoneNumberResponse_phoneNumber :: Lens' ReleasePhoneNumberResponse (Maybe Text)
- releasePhoneNumberResponse_phoneNumberArn :: Lens' ReleasePhoneNumberResponse (Maybe Text)
- releasePhoneNumberResponse_phoneNumberId :: Lens' ReleasePhoneNumberResponse (Maybe Text)
- releasePhoneNumberResponse_selfManagedOptOutsEnabled :: Lens' ReleasePhoneNumberResponse (Maybe Bool)
- releasePhoneNumberResponse_status :: Lens' ReleasePhoneNumberResponse (Maybe NumberStatus)
- releasePhoneNumberResponse_twoWayChannelArn :: Lens' ReleasePhoneNumberResponse (Maybe Text)
- releasePhoneNumberResponse_twoWayEnabled :: Lens' ReleasePhoneNumberResponse (Maybe Bool)
- releasePhoneNumberResponse_httpStatus :: Lens' ReleasePhoneNumberResponse Int
Creating a Request
data ReleasePhoneNumber Source #
See: newReleasePhoneNumber
smart constructor.
ReleasePhoneNumber' | |
|
Instances
newReleasePhoneNumber Source #
Create a value of ReleasePhoneNumber
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:
ReleasePhoneNumber
, releasePhoneNumber_phoneNumberId
- The PhoneNumberId or PhoneNumberArn of the phone number to release. You
can use DescribePhoneNumbers to get the values for PhoneNumberId and
PhoneNumberArn.
Request Lenses
releasePhoneNumber_phoneNumberId :: Lens' ReleasePhoneNumber Text Source #
The PhoneNumberId or PhoneNumberArn of the phone number to release. You can use DescribePhoneNumbers to get the values for PhoneNumberId and PhoneNumberArn.
Destructuring the Response
data ReleasePhoneNumberResponse Source #
See: newReleasePhoneNumberResponse
smart constructor.
ReleasePhoneNumberResponse' | |
|
Instances
newReleasePhoneNumberResponse Source #
Create a value of ReleasePhoneNumberResponse
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:
ReleasePhoneNumberResponse
, releasePhoneNumberResponse_createdTimestamp
- The time when the phone number was created, in
UNIX epoch time format.
ReleasePhoneNumberResponse
, releasePhoneNumberResponse_isoCountryCode
- The two-character code, in ISO 3166-1 alpha-2 format, for the country or
region.
ReleasePhoneNumberResponse
, releasePhoneNumberResponse_messageType
- The message type that was associated with the phone number.
ReleasePhoneNumberResponse
, releasePhoneNumberResponse_monthlyLeasingPrice
- The monthly price of the phone number, in US dollars.
ReleasePhoneNumberResponse
, releasePhoneNumberResponse_numberCapabilities
- Specifies if the number could be used for text messages, voice, or both.
ReleasePhoneNumberResponse
, releasePhoneNumberResponse_numberType
- The type of number that was released.
ReleasePhoneNumberResponse
, releasePhoneNumberResponse_optOutListName
- The name of the OptOutList that was associated with the phone number.
ReleasePhoneNumberResponse
, releasePhoneNumberResponse_phoneNumber
- The phone number that was released.
ReleasePhoneNumberResponse
, releasePhoneNumberResponse_phoneNumberArn
- The PhoneNumberArn of the phone number that was released.
ReleasePhoneNumber
, releasePhoneNumberResponse_phoneNumberId
- The PhoneNumberId of the phone number that was released.
ReleasePhoneNumberResponse
, releasePhoneNumberResponse_selfManagedOptOutsEnabled
- By default this is set to false. When an end recipient sends a message
that begins with HELP or STOP to one of your dedicated numbers, Amazon
Pinpoint automatically replies with a customizable message and adds the
end recipient to the OptOutList. When set to true you're responsible
for responding to HELP and STOP requests. You're also responsible for
tracking and honoring opt-out requests.
ReleasePhoneNumberResponse
, releasePhoneNumberResponse_status
- The current status of the request.
ReleasePhoneNumberResponse
, releasePhoneNumberResponse_twoWayChannelArn
- The Amazon Resource Name (ARN) of the TwoWayChannel.
ReleasePhoneNumberResponse
, releasePhoneNumberResponse_twoWayEnabled
- By default this is set to false. When set to true you can receive
incoming text messages from your end recipients.
$sel:httpStatus:ReleasePhoneNumberResponse'
, releasePhoneNumberResponse_httpStatus
- The response's http status code.
Response Lenses
releasePhoneNumberResponse_createdTimestamp :: Lens' ReleasePhoneNumberResponse (Maybe UTCTime) Source #
The time when the phone number was created, in UNIX epoch time format.
releasePhoneNumberResponse_isoCountryCode :: Lens' ReleasePhoneNumberResponse (Maybe Text) Source #
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
releasePhoneNumberResponse_messageType :: Lens' ReleasePhoneNumberResponse (Maybe MessageType) Source #
The message type that was associated with the phone number.
releasePhoneNumberResponse_monthlyLeasingPrice :: Lens' ReleasePhoneNumberResponse (Maybe Text) Source #
The monthly price of the phone number, in US dollars.
releasePhoneNumberResponse_numberCapabilities :: Lens' ReleasePhoneNumberResponse (Maybe (NonEmpty NumberCapability)) Source #
Specifies if the number could be used for text messages, voice, or both.
releasePhoneNumberResponse_numberType :: Lens' ReleasePhoneNumberResponse (Maybe NumberType) Source #
The type of number that was released.
releasePhoneNumberResponse_optOutListName :: Lens' ReleasePhoneNumberResponse (Maybe Text) Source #
The name of the OptOutList that was associated with the phone number.
releasePhoneNumberResponse_phoneNumber :: Lens' ReleasePhoneNumberResponse (Maybe Text) Source #
The phone number that was released.
releasePhoneNumberResponse_phoneNumberArn :: Lens' ReleasePhoneNumberResponse (Maybe Text) Source #
The PhoneNumberArn of the phone number that was released.
releasePhoneNumberResponse_phoneNumberId :: Lens' ReleasePhoneNumberResponse (Maybe Text) Source #
The PhoneNumberId of the phone number that was released.
releasePhoneNumberResponse_selfManagedOptOutsEnabled :: Lens' ReleasePhoneNumberResponse (Maybe Bool) Source #
By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
releasePhoneNumberResponse_status :: Lens' ReleasePhoneNumberResponse (Maybe NumberStatus) Source #
The current status of the request.
releasePhoneNumberResponse_twoWayChannelArn :: Lens' ReleasePhoneNumberResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the TwoWayChannel.
releasePhoneNumberResponse_twoWayEnabled :: Lens' ReleasePhoneNumberResponse (Maybe Bool) Source #
By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
releasePhoneNumberResponse_httpStatus :: Lens' ReleasePhoneNumberResponse Int Source #
The response's http status code.