amazonka-sqs-1.4.1: 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.SetQueueAttributes

Contents

Description

Sets the value of one or more queue attributes. When you change a queue's attributes, the change can take up to 60 seconds for most of the attributes to propagate throughout the SQS system. Changes made to the MessageRetentionPeriod attribute can take up to 15 minutes.

Going forward, new attributes might be added. If you are writing code that calls this action, we recommend that you structure your code so that it can handle new attributes gracefully.

Synopsis

Creating a Request

setQueueAttributes Source #

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

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

data SetQueueAttributes Source #

See: setQueueAttributes smart constructor.

Instances

Eq SetQueueAttributes Source # 
Data SetQueueAttributes Source # 

Methods

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

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

toConstr :: SetQueueAttributes -> Constr #

dataTypeOf :: SetQueueAttributes -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SetQueueAttributes Source # 
Show SetQueueAttributes Source # 
Generic SetQueueAttributes Source # 
Hashable SetQueueAttributes Source # 
NFData SetQueueAttributes Source # 

Methods

rnf :: SetQueueAttributes -> () #

AWSRequest SetQueueAttributes Source # 
ToQuery SetQueueAttributes Source # 
ToPath SetQueueAttributes Source # 
ToHeaders SetQueueAttributes Source # 
type Rep SetQueueAttributes Source # 
type Rep SetQueueAttributes = D1 (MetaData "SetQueueAttributes" "Network.AWS.SQS.SetQueueAttributes" "amazonka-sqs-1.4.1-6wIiN8URYwQL9UskJUn468" False) (C1 (MetaCons "SetQueueAttributes'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_sqaQueueURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_sqaAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Map QueueAttributeName Text)))))
type Rs SetQueueAttributes Source # 

Request Lenses

sqaQueueURL :: Lens' SetQueueAttributes Text Source #

The URL of the Amazon SQS queue to take action on.

sqaAttributes :: Lens' SetQueueAttributes (HashMap QueueAttributeName Text) Source #

A map of attributes to set.

The following lists the names, descriptions, and values of the special request parameters the SetQueueAttributes action uses:

  • DelaySeconds - The time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 (zero).
  • MaximumMessageSize - The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute is 262144 (256 KiB).
  • MessageRetentionPeriod - The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days).
  • Policy - The queue's policy. A valid AWS policy. For more information about policy structure, see Overview of AWS IAM Policies in the Amazon IAM User Guide.
  • ReceiveMessageWaitTimeSeconds - The time for which a ReceiveMessage call will wait for a message to arrive. An integer from 0 to 20 (seconds). The default for this attribute is 0.
  • VisibilityTimeout - The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide.
  • RedrivePolicy - The parameters for dead letter queue functionality of the source queue. For more information about RedrivePolicy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.

Destructuring the Response

setQueueAttributesResponse :: SetQueueAttributesResponse Source #

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

data SetQueueAttributesResponse Source #

See: setQueueAttributesResponse smart constructor.

Instances

Eq SetQueueAttributesResponse Source # 
Data SetQueueAttributesResponse Source # 

Methods

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

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

toConstr :: SetQueueAttributesResponse -> Constr #

dataTypeOf :: SetQueueAttributesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SetQueueAttributesResponse Source # 
Show SetQueueAttributesResponse Source # 
Generic SetQueueAttributesResponse Source # 
NFData SetQueueAttributesResponse Source # 
type Rep SetQueueAttributesResponse Source # 
type Rep SetQueueAttributesResponse = D1 (MetaData "SetQueueAttributesResponse" "Network.AWS.SQS.SetQueueAttributes" "amazonka-sqs-1.4.1-6wIiN8URYwQL9UskJUn468" False) (C1 (MetaCons "SetQueueAttributesResponse'" PrefixI False) U1)