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

Copyright(c) 2013-2017 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.GetQueueURL

Contents

Description

Returns the URL of an existing queue. This action provides a simple way to retrieve the URL of an Amazon SQS queue.

To access a queue that belongs to another AWS account, use the QueueOwnerAWSAccountId parameter to specify the account ID of the queue's owner. The queue's owner must grant you permission to access the queue. For more information about shared queue access, see AddPermission or see Shared Queues in the Amazon Simple Queue Service Developer Guide .

Synopsis

Creating a Request

getQueueURL Source #

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

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

  • gquQueueOwnerAWSAccountId - The AWS account ID of the account that created the queue.
  • gquQueueName - The name of the queue whose URL must be fetched. Maximum 80 characters. Valid values: alphanumeric characters, hyphens (- ), and underscores (_ ). Queue names are case-sensitive.

data GetQueueURL Source #

See: getQueueURL smart constructor.

Instances

Eq GetQueueURL Source # 
Data GetQueueURL Source # 

Methods

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

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

toConstr :: GetQueueURL -> Constr #

dataTypeOf :: GetQueueURL -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetQueueURL Source # 
Show GetQueueURL Source # 
Generic GetQueueURL Source # 

Associated Types

type Rep GetQueueURL :: * -> * #

Hashable GetQueueURL Source # 
NFData GetQueueURL Source # 

Methods

rnf :: GetQueueURL -> () #

AWSRequest GetQueueURL Source # 
ToQuery GetQueueURL Source # 
ToPath GetQueueURL Source # 
ToHeaders GetQueueURL Source # 

Methods

toHeaders :: GetQueueURL -> [Header] #

type Rep GetQueueURL Source # 
type Rep GetQueueURL = D1 (MetaData "GetQueueURL" "Network.AWS.SQS.GetQueueURL" "amazonka-sqs-1.5.0-GGKLvMJdHnF9FsLIXBFcpn" False) (C1 (MetaCons "GetQueueURL'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gquQueueOwnerAWSAccountId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gquQueueName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs GetQueueURL Source # 

Request Lenses

gquQueueOwnerAWSAccountId :: Lens' GetQueueURL (Maybe Text) Source #

The AWS account ID of the account that created the queue.

gquQueueName :: Lens' GetQueueURL Text Source #

The name of the queue whose URL must be fetched. Maximum 80 characters. Valid values: alphanumeric characters, hyphens (- ), and underscores (_ ). Queue names are case-sensitive.

Destructuring the Response

getQueueURLResponse Source #

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

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

data GetQueueURLResponse Source #

For more information, see Responses in the Amazon Simple Queue Service Developer Guide .

See: getQueueURLResponse smart constructor.

Instances

Eq GetQueueURLResponse Source # 
Data GetQueueURLResponse Source # 

Methods

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

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

toConstr :: GetQueueURLResponse -> Constr #

dataTypeOf :: GetQueueURLResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetQueueURLResponse Source # 
Show GetQueueURLResponse Source # 
Generic GetQueueURLResponse Source # 
NFData GetQueueURLResponse Source # 

Methods

rnf :: GetQueueURLResponse -> () #

type Rep GetQueueURLResponse Source # 
type Rep GetQueueURLResponse = D1 (MetaData "GetQueueURLResponse" "Network.AWS.SQS.GetQueueURL" "amazonka-sqs-1.5.0-GGKLvMJdHnF9FsLIXBFcpn" False) (C1 (MetaCons "GetQueueURLResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gqursResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)) (S1 (MetaSel (Just Symbol "_gqursQueueURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))

Response Lenses

gqursResponseStatus :: Lens' GetQueueURLResponse Int Source #

  • - | The response status code.