Copyright | (c) 2013-2021 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 |
Returns the URL of an existing 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
Allow Developers to Write Messages to a Shared Queue
in the Amazon SQS Developer Guide.
Synopsis
- data GetQueueUrl = GetQueueUrl' {}
- newGetQueueUrl :: Text -> GetQueueUrl
- getQueueUrl_queueOwnerAWSAccountId :: Lens' GetQueueUrl (Maybe Text)
- getQueueUrl_queueName :: Lens' GetQueueUrl Text
- data GetQueueUrlResponse = GetQueueUrlResponse' {
- httpStatus :: Int
- queueUrl :: Text
- newGetQueueUrlResponse :: Int -> Text -> GetQueueUrlResponse
- getQueueUrlResponse_httpStatus :: Lens' GetQueueUrlResponse Int
- getQueueUrlResponse_queueUrl :: Lens' GetQueueUrlResponse Text
Creating a Request
data GetQueueUrl Source #
See: newGetQueueUrl
smart constructor.
GetQueueUrl' | |
|
Instances
Create a value of GetQueueUrl
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:queueOwnerAWSAccountId:GetQueueUrl'
, getQueueUrl_queueOwnerAWSAccountId
- The account ID of the account that created the queue.
$sel:queueName:GetQueueUrl'
, getQueueUrl_queueName
- The name of the queue whose URL must be fetched. Maximum 80 characters.
Valid values: alphanumeric characters, hyphens (-
), and underscores
(_
).
Queue URLs and names are case-sensitive.
Request Lenses
getQueueUrl_queueOwnerAWSAccountId :: Lens' GetQueueUrl (Maybe Text) Source #
The account ID of the account that created the queue.
getQueueUrl_queueName :: 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 URLs and names are case-sensitive.
Destructuring the Response
data GetQueueUrlResponse Source #
For more information, see Interpreting Responses in the Amazon SQS Developer Guide.
See: newGetQueueUrlResponse
smart constructor.
GetQueueUrlResponse' | |
|
Instances
newGetQueueUrlResponse Source #
:: Int | |
-> Text | |
-> GetQueueUrlResponse |
Create a value of GetQueueUrlResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:GetQueueUrlResponse'
, getQueueUrlResponse_httpStatus
- The response's http status code.
$sel:queueUrl:GetQueueUrlResponse'
, getQueueUrlResponse_queueUrl
- The URL of the queue.
Response Lenses
getQueueUrlResponse_httpStatus :: Lens' GetQueueUrlResponse Int Source #
The response's http status code.
getQueueUrlResponse_queueUrl :: Lens' GetQueueUrlResponse Text Source #
The URL of the queue.