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.ChangeMessageVisibility

Contents

Description

Changes the visibility timeout of a specified message in a queue to a new value. The maximum allowed timeout value you can set the value to is 12 hours. This means you can't extend the timeout of a message in an existing queue to more than a total visibility timeout of 12 hours. (For more information visibility timeout, see Visibility Timeout in the Amazon SQS Developer Guide .)

For example, let's say you have a message and its default message visibility timeout is 5 minutes. After 3 minutes, you call ChangeMessageVisiblity with a timeout of 10 minutes. At that time, the timeout for the message would be extended by 10 minutes beyond the time of the ChangeMessageVisibility call. This results in a total visibility timeout of 13 minutes. You can continue to call ChangeMessageVisibility to extend the visibility timeout to a maximum of 12 hours. If you try to extend beyond 12 hours, the request will be rejected.

Important: If you attempt to set the VisibilityTimeout to an amount more than the maximum time left, Amazon SQS returns an error. It will not automatically recalculate and increase the timeout to the maximum time remaining.

Important: Unlike with a queue, when you change the visibility timeout for a specific message, that timeout value is applied immediately but is not saved in memory for that message. If you don't delete a message after it is received, the visibility timeout for the message the next time it is received reverts to the original timeout value, not the value you set with the ChangeMessageVisibility action.

Synopsis

Creating a Request

changeMessageVisibility Source #

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

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

  • cmvQueueURL - The URL of the Amazon SQS queue to take action on. Queue URLs are case-sensitive.
  • cmvReceiptHandle - The receipt handle associated with the message whose visibility timeout should be changed. This parameter is returned by the ReceiveMessage action.
  • cmvVisibilityTimeout - The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the message's visibility timeout.

data ChangeMessageVisibility Source #

See: changeMessageVisibility smart constructor.

Instances

Eq ChangeMessageVisibility Source # 
Data ChangeMessageVisibility Source # 

Methods

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

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

toConstr :: ChangeMessageVisibility -> Constr #

dataTypeOf :: ChangeMessageVisibility -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ChangeMessageVisibility Source # 
Show ChangeMessageVisibility Source # 
Generic ChangeMessageVisibility Source # 
Hashable ChangeMessageVisibility Source # 
NFData ChangeMessageVisibility Source # 

Methods

rnf :: ChangeMessageVisibility -> () #

AWSRequest ChangeMessageVisibility Source # 
ToPath ChangeMessageVisibility Source # 
ToHeaders ChangeMessageVisibility Source # 
ToQuery ChangeMessageVisibility Source # 
type Rep ChangeMessageVisibility Source # 
type Rep ChangeMessageVisibility = D1 (MetaData "ChangeMessageVisibility" "Network.AWS.SQS.ChangeMessageVisibility" "amazonka-sqs-1.4.5-4rQHB5Mk9mo8cQvbOgAp4I" False) (C1 (MetaCons "ChangeMessageVisibility'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cmvQueueURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_cmvReceiptHandle") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_cmvVisibilityTimeout") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))
type Rs ChangeMessageVisibility Source # 

Request Lenses

cmvQueueURL :: Lens' ChangeMessageVisibility Text Source #

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

cmvReceiptHandle :: Lens' ChangeMessageVisibility Text Source #

The receipt handle associated with the message whose visibility timeout should be changed. This parameter is returned by the ReceiveMessage action.

cmvVisibilityTimeout :: Lens' ChangeMessageVisibility Int Source #

The new value (in seconds - from 0 to 43200 - maximum 12 hours) for the message's visibility timeout.

Destructuring the Response

changeMessageVisibilityResponse :: ChangeMessageVisibilityResponse Source #

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

data ChangeMessageVisibilityResponse Source #

See: changeMessageVisibilityResponse smart constructor.

Instances

Eq ChangeMessageVisibilityResponse Source # 
Data ChangeMessageVisibilityResponse Source # 

Methods

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

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

toConstr :: ChangeMessageVisibilityResponse -> Constr #

dataTypeOf :: ChangeMessageVisibilityResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ChangeMessageVisibilityResponse Source # 
Show ChangeMessageVisibilityResponse Source # 
Generic ChangeMessageVisibilityResponse Source # 
NFData ChangeMessageVisibilityResponse Source # 
type Rep ChangeMessageVisibilityResponse Source # 
type Rep ChangeMessageVisibilityResponse = D1 (MetaData "ChangeMessageVisibilityResponse" "Network.AWS.SQS.ChangeMessageVisibility" "amazonka-sqs-1.4.5-4rQHB5Mk9mo8cQvbOgAp4I" False) (C1 (MetaCons "ChangeMessageVisibilityResponse'" PrefixI False) U1)