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

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

Network.AWS.SQS.PurgeQueue

Contents

Description

Deletes the messages in a queue specified by the QueueURL parameter.

Important: When you use the PurgeQueue action, you can't retrieve a message deleted from a queue.

When you purge a queue, the message deletion process takes up to 60 seconds. All messages sent to the queue before calling the PurgeQueue action are deleted. Messages sent to the queue while it is being purged might be deleted. While the queue is being purged, messages sent to the queue before PurgeQueue is called might be received, but are deleted within the next minute.

Synopsis

Creating a Request

purgeQueue Source #

Arguments

:: Text

pqQueueURL

-> PurgeQueue 

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

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

  • pqQueueURL - The URL of the queue from which the PurgeQueue action deletes messages. Queue URLs are case-sensitive.

data PurgeQueue Source #

See: purgeQueue smart constructor.

Instances
Eq PurgeQueue Source # 
Instance details

Defined in Network.AWS.SQS.PurgeQueue

Data PurgeQueue Source # 
Instance details

Defined in Network.AWS.SQS.PurgeQueue

Methods

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

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

toConstr :: PurgeQueue -> Constr #

dataTypeOf :: PurgeQueue -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PurgeQueue Source # 
Instance details

Defined in Network.AWS.SQS.PurgeQueue

Show PurgeQueue Source # 
Instance details

Defined in Network.AWS.SQS.PurgeQueue

Generic PurgeQueue Source # 
Instance details

Defined in Network.AWS.SQS.PurgeQueue

Associated Types

type Rep PurgeQueue :: Type -> Type #

Hashable PurgeQueue Source # 
Instance details

Defined in Network.AWS.SQS.PurgeQueue

AWSRequest PurgeQueue Source # 
Instance details

Defined in Network.AWS.SQS.PurgeQueue

Associated Types

type Rs PurgeQueue :: Type #

ToHeaders PurgeQueue Source # 
Instance details

Defined in Network.AWS.SQS.PurgeQueue

Methods

toHeaders :: PurgeQueue -> [Header] #

ToPath PurgeQueue Source # 
Instance details

Defined in Network.AWS.SQS.PurgeQueue

ToQuery PurgeQueue Source # 
Instance details

Defined in Network.AWS.SQS.PurgeQueue

NFData PurgeQueue Source # 
Instance details

Defined in Network.AWS.SQS.PurgeQueue

Methods

rnf :: PurgeQueue -> () #

type Rep PurgeQueue Source # 
Instance details

Defined in Network.AWS.SQS.PurgeQueue

type Rep PurgeQueue = D1 (MetaData "PurgeQueue" "Network.AWS.SQS.PurgeQueue" "amazonka-sqs-1.6.1-4KwGv5jRSGR2noZdqwtyOA" True) (C1 (MetaCons "PurgeQueue'" PrefixI True) (S1 (MetaSel (Just "_pqQueueURL") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs PurgeQueue Source # 
Instance details

Defined in Network.AWS.SQS.PurgeQueue

Request Lenses

pqQueueURL :: Lens' PurgeQueue Text Source #

The URL of the queue from which the PurgeQueue action deletes messages. Queue URLs are case-sensitive.

Destructuring the Response

purgeQueueResponse :: PurgeQueueResponse Source #

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

data PurgeQueueResponse Source #

See: purgeQueueResponse smart constructor.

Instances
Eq PurgeQueueResponse Source # 
Instance details

Defined in Network.AWS.SQS.PurgeQueue

Data PurgeQueueResponse Source # 
Instance details

Defined in Network.AWS.SQS.PurgeQueue

Methods

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

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

toConstr :: PurgeQueueResponse -> Constr #

dataTypeOf :: PurgeQueueResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PurgeQueueResponse Source # 
Instance details

Defined in Network.AWS.SQS.PurgeQueue

Show PurgeQueueResponse Source # 
Instance details

Defined in Network.AWS.SQS.PurgeQueue

Generic PurgeQueueResponse Source # 
Instance details

Defined in Network.AWS.SQS.PurgeQueue

Associated Types

type Rep PurgeQueueResponse :: Type -> Type #

NFData PurgeQueueResponse Source # 
Instance details

Defined in Network.AWS.SQS.PurgeQueue

Methods

rnf :: PurgeQueueResponse -> () #

type Rep PurgeQueueResponse Source # 
Instance details

Defined in Network.AWS.SQS.PurgeQueue

type Rep PurgeQueueResponse = D1 (MetaData "PurgeQueueResponse" "Network.AWS.SQS.PurgeQueue" "amazonka-sqs-1.6.1-4KwGv5jRSGR2noZdqwtyOA" False) (C1 (MetaCons "PurgeQueueResponse'" PrefixI False) (U1 :: Type -> Type))