delete_pool
(**kwargs)¶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.
See also: AWS API Documentation
Request Syntax
response = client.delete_pool(
PoolId='string'
)
[REQUIRED]
The PoolId or PoolArn of the pool to delete. You can use DescribePools to find the values for PoolId and PoolArn .
{
'PoolArn': 'string',
'PoolId': 'string',
'Status': 'CREATING'|'ACTIVE'|'DELETING',
'MessageType': 'TRANSACTIONAL'|'PROMOTIONAL',
'TwoWayEnabled': True|False,
'TwoWayChannelArn': 'string',
'SelfManagedOptOutsEnabled': True|False,
'OptOutListName': 'string',
'SharedRoutesEnabled': True|False,
'CreatedTimestamp': datetime(2015, 1, 1)
}
Response Structure
The Amazon Resource Name (ARN) of the pool that was deleted.
The PoolId of the pool that was deleted.
The current status of the pool.
The message type that was associated with the deleted pool.
By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
The Amazon Resource Name (ARN) of the TwoWayChannel.
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.
The name of the OptOutList that was associated with the deleted pool.
Indicates whether shared routes are enabled for the pool.
The time when the pool was created, in UNIX epoch time format.
Exceptions
PinpointSMSVoiceV2.Client.exceptions.ThrottlingException
PinpointSMSVoiceV2.Client.exceptions.AccessDeniedException
PinpointSMSVoiceV2.Client.exceptions.ResourceNotFoundException
PinpointSMSVoiceV2.Client.exceptions.ValidationException
PinpointSMSVoiceV2.Client.exceptions.ConflictException
PinpointSMSVoiceV2.Client.exceptions.InternalServerException