amazonka-sqs-1.6.0: 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.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 #

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 #

See: getQueueURL smart constructor.

Instances

Eq GetQueueURL # 
Data GetQueueURL # 

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 # 
Show GetQueueURL # 
Generic GetQueueURL # 

Associated Types

type Rep GetQueueURL :: * -> * #

Hashable GetQueueURL # 
NFData GetQueueURL # 

Methods

rnf :: GetQueueURL -> () #

AWSRequest GetQueueURL # 
ToHeaders GetQueueURL # 

Methods

toHeaders :: GetQueueURL -> [Header] #

ToPath GetQueueURL # 
ToQuery GetQueueURL # 
type Rep GetQueueURL # 
type Rep GetQueueURL = D1 * (MetaData "GetQueueURL" "Network.AWS.SQS.GetQueueURL" "amazonka-sqs-1.6.0-6AKMU5Om8FbICeCVgWDhlE" 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 # 

Request Lenses

gquQueueOwnerAWSAccountId :: Lens' GetQueueURL (Maybe Text) #

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

gquQueueName :: Lens' GetQueueURL Text #

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 #

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 #

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

See: getQueueURLResponse smart constructor.

Instances

Eq GetQueueURLResponse # 
Data GetQueueURLResponse # 

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 # 
Show GetQueueURLResponse # 
Generic GetQueueURLResponse # 
NFData GetQueueURLResponse # 

Methods

rnf :: GetQueueURLResponse -> () #

type Rep GetQueueURLResponse # 
type Rep GetQueueURLResponse = D1 * (MetaData "GetQueueURLResponse" "Network.AWS.SQS.GetQueueURL" "amazonka-sqs-1.6.0-6AKMU5Om8FbICeCVgWDhlE" 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 #

  • - | The response status code.

gqursQueueURL :: Lens' GetQueueURLResponse Text #

The URL of the queue.