amazonka-sqs-1.4.5: Amazon Simple Queue Service SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.SQS.DeleteQueue

Contents

Description

Deletes the queue specified by the queue URL , regardless of whether the queue is empty. If the specified queue doesn't exist, Amazon SQS returns a successful response.

Important: Use DeleteQueue with care; once you delete your queue, any messages in the queue are no longer available.

When you delete a queue, the deletion process takes up to 60 seconds. Requests you send involving that queue during the 60 seconds might succeed. For example, a SendMessage request might succeed, but after the 60 seconds, the queue and that message you sent no longer exist. Also, when you delete a queue, you must wait at least 60 seconds before creating a queue with the same name.

We reserve the right to delete queues that have had no activity for more than 30 days. For more information, see How Amazon SQS Queues Work in the Amazon SQS Developer Guide .

Synopsis

Creating a Request

deleteQueue #

Arguments

:: Text

dqQueueURL

-> DeleteQueue 

Creates a value of DeleteQueue with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dqQueueURL - The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive.

data DeleteQueue #

See: deleteQueue smart constructor.

Instances

Eq DeleteQueue # 
Data DeleteQueue # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteQueue -> c DeleteQueue #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteQueue #

toConstr :: DeleteQueue -> Constr #

dataTypeOf :: DeleteQueue -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DeleteQueue) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteQueue) #

gmapT :: (forall b. Data b => b -> b) -> DeleteQueue -> DeleteQueue #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteQueue -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteQueue -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeleteQueue -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteQueue -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteQueue -> m DeleteQueue #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteQueue -> m DeleteQueue #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteQueue -> m DeleteQueue #

Read DeleteQueue # 
Show DeleteQueue # 
Generic DeleteQueue # 

Associated Types

type Rep DeleteQueue :: * -> * #

Hashable DeleteQueue # 
NFData DeleteQueue # 

Methods

rnf :: DeleteQueue -> () #

AWSRequest DeleteQueue # 
ToQuery DeleteQueue # 
ToPath DeleteQueue # 
ToHeaders DeleteQueue # 

Methods

toHeaders :: DeleteQueue -> [Header] #

type Rep DeleteQueue # 
type Rep DeleteQueue = D1 (MetaData "DeleteQueue" "Network.AWS.SQS.DeleteQueue" "amazonka-sqs-1.4.5-AjHrg8hmhlvBQXJ3tK3BFF" True) (C1 (MetaCons "DeleteQueue'" PrefixI True) (S1 (MetaSel (Just Symbol "_dqQueueURL") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs DeleteQueue # 

Request Lenses

dqQueueURL :: Lens' DeleteQueue Text #

The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive.

Destructuring the Response

deleteQueueResponse :: DeleteQueueResponse #

Creates a value of DeleteQueueResponse with the minimum fields required to make a request.

data DeleteQueueResponse #

See: deleteQueueResponse smart constructor.

Instances

Eq DeleteQueueResponse # 
Data DeleteQueueResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteQueueResponse -> c DeleteQueueResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteQueueResponse #

toConstr :: DeleteQueueResponse -> Constr #

dataTypeOf :: DeleteQueueResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DeleteQueueResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteQueueResponse) #

gmapT :: (forall b. Data b => b -> b) -> DeleteQueueResponse -> DeleteQueueResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteQueueResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteQueueResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeleteQueueResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteQueueResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteQueueResponse -> m DeleteQueueResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteQueueResponse -> m DeleteQueueResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteQueueResponse -> m DeleteQueueResponse #

Read DeleteQueueResponse # 
Show DeleteQueueResponse # 
Generic DeleteQueueResponse # 
NFData DeleteQueueResponse # 

Methods

rnf :: DeleteQueueResponse -> () #

type Rep DeleteQueueResponse # 
type Rep DeleteQueueResponse = D1 (MetaData "DeleteQueueResponse" "Network.AWS.SQS.DeleteQueue" "amazonka-sqs-1.4.5-AjHrg8hmhlvBQXJ3tK3BFF" False) (C1 (MetaCons "DeleteQueueResponse'" PrefixI False) U1)