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 |
Deletes an existing pool. Deleting a pool disassociates all origination identities from that pool.
If the pool status isn't active or if deletion protection is enabled, an Error is returned.
A pool is a collection of phone numbers and SenderIds. A pool can include one or more phone numbers and SenderIds that are associated with your Amazon Web Services account.
Synopsis
- data DeletePool = DeletePool' {}
- newDeletePool :: Text -> DeletePool
- deletePool_poolId :: Lens' DeletePool Text
- data DeletePoolResponse = DeletePoolResponse' {
- createdTimestamp :: Maybe POSIX
- messageType :: Maybe MessageType
- optOutListName :: Maybe Text
- poolArn :: Maybe Text
- poolId :: Maybe Text
- selfManagedOptOutsEnabled :: Maybe Bool
- sharedRoutesEnabled :: Maybe Bool
- status :: Maybe PoolStatus
- twoWayChannelArn :: Maybe Text
- twoWayEnabled :: Maybe Bool
- httpStatus :: Int
- newDeletePoolResponse :: Int -> DeletePoolResponse
- deletePoolResponse_createdTimestamp :: Lens' DeletePoolResponse (Maybe UTCTime)
- deletePoolResponse_messageType :: Lens' DeletePoolResponse (Maybe MessageType)
- deletePoolResponse_optOutListName :: Lens' DeletePoolResponse (Maybe Text)
- deletePoolResponse_poolArn :: Lens' DeletePoolResponse (Maybe Text)
- deletePoolResponse_poolId :: Lens' DeletePoolResponse (Maybe Text)
- deletePoolResponse_selfManagedOptOutsEnabled :: Lens' DeletePoolResponse (Maybe Bool)
- deletePoolResponse_sharedRoutesEnabled :: Lens' DeletePoolResponse (Maybe Bool)
- deletePoolResponse_status :: Lens' DeletePoolResponse (Maybe PoolStatus)
- deletePoolResponse_twoWayChannelArn :: Lens' DeletePoolResponse (Maybe Text)
- deletePoolResponse_twoWayEnabled :: Lens' DeletePoolResponse (Maybe Bool)
- deletePoolResponse_httpStatus :: Lens' DeletePoolResponse Int
Creating a Request
data DeletePool Source #
See: newDeletePool
smart constructor.
Instances
:: Text | |
-> DeletePool |
Create a value of DeletePool
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:
DeletePool
, deletePool_poolId
- The PoolId or PoolArn of the pool to delete. You can use DescribePools
to find the values for PoolId and PoolArn .
Request Lenses
deletePool_poolId :: Lens' DeletePool Text Source #
The PoolId or PoolArn of the pool to delete. You can use DescribePools to find the values for PoolId and PoolArn .
Destructuring the Response
data DeletePoolResponse Source #
See: newDeletePoolResponse
smart constructor.
DeletePoolResponse' | |
|
Instances
newDeletePoolResponse Source #
Create a value of DeletePoolResponse
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:
DeletePoolResponse
, deletePoolResponse_createdTimestamp
- The time when the pool was created, in
UNIX epoch time format.
DeletePoolResponse
, deletePoolResponse_messageType
- The message type that was associated with the deleted pool.
DeletePoolResponse
, deletePoolResponse_optOutListName
- The name of the OptOutList that was associated with the deleted pool.
DeletePoolResponse
, deletePoolResponse_poolArn
- The Amazon Resource Name (ARN) of the pool that was deleted.
DeletePool
, deletePoolResponse_poolId
- The PoolId of the pool that was deleted.
DeletePoolResponse
, deletePoolResponse_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.
DeletePoolResponse
, deletePoolResponse_sharedRoutesEnabled
- Indicates whether shared routes are enabled for the pool.
DeletePoolResponse
, deletePoolResponse_status
- The current status of the pool.
- CREATING: The pool is currently being created and isn't yet available for use.
- ACTIVE: The pool is active and available for use.
- DELETING: The pool is being deleted.
DeletePoolResponse
, deletePoolResponse_twoWayChannelArn
- The Amazon Resource Name (ARN) of the TwoWayChannel.
DeletePoolResponse
, deletePoolResponse_twoWayEnabled
- By default this is set to false. When set to true you can receive
incoming text messages from your end recipients.
$sel:httpStatus:DeletePoolResponse'
, deletePoolResponse_httpStatus
- The response's http status code.
Response Lenses
deletePoolResponse_createdTimestamp :: Lens' DeletePoolResponse (Maybe UTCTime) Source #
The time when the pool was created, in UNIX epoch time format.
deletePoolResponse_messageType :: Lens' DeletePoolResponse (Maybe MessageType) Source #
The message type that was associated with the deleted pool.
deletePoolResponse_optOutListName :: Lens' DeletePoolResponse (Maybe Text) Source #
The name of the OptOutList that was associated with the deleted pool.
deletePoolResponse_poolArn :: Lens' DeletePoolResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the pool that was deleted.
deletePoolResponse_poolId :: Lens' DeletePoolResponse (Maybe Text) Source #
The PoolId of the pool that was deleted.
deletePoolResponse_selfManagedOptOutsEnabled :: Lens' DeletePoolResponse (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.
deletePoolResponse_sharedRoutesEnabled :: Lens' DeletePoolResponse (Maybe Bool) Source #
Indicates whether shared routes are enabled for the pool.
deletePoolResponse_status :: Lens' DeletePoolResponse (Maybe PoolStatus) Source #
The current status of the pool.
- CREATING: The pool is currently being created and isn't yet available for use.
- ACTIVE: The pool is active and available for use.
- DELETING: The pool is being deleted.
deletePoolResponse_twoWayChannelArn :: Lens' DeletePoolResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the TwoWayChannel.
deletePoolResponse_twoWayEnabled :: Lens' DeletePoolResponse (Maybe Bool) Source #
By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
deletePoolResponse_httpStatus :: Lens' DeletePoolResponse Int Source #
The response's http status code.