Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
or see Shared Queues in the Amazon Simple Queue Service Developer Guide .AddPermission
Synopsis
- getQueueURL :: Text -> GetQueueURL
- data GetQueueURL
- gquQueueOwnerAWSAccountId :: Lens' GetQueueURL (Maybe Text)
- gquQueueName :: Lens' GetQueueURL Text
- getQueueURLResponse :: Int -> Text -> GetQueueURLResponse
- data GetQueueURLResponse
- gqursResponseStatus :: Lens' GetQueueURLResponse Int
- gqursQueueURL :: Lens' GetQueueURLResponse Text
Creating a Request
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
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
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:
gqursResponseStatus
- -- | The response status code.gqursQueueURL
- The URL of the queue.
data GetQueueURLResponse Source #
For more information, see Responses in the Amazon Simple Queue Service Developer Guide .
See: getQueueURLResponse
smart constructor.
Instances
Response Lenses
gqursResponseStatus :: Lens' GetQueueURLResponse Int Source #
- - | The response status code.
gqursQueueURL :: Lens' GetQueueURLResponse Text Source #
The URL of the queue.