libZSservicesZSamazonka-sqsZSamazonka-sqs
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SQS.GetQueueUrl

Description

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

Creating a Request

data GetQueueUrl Source #

See: newGetQueueUrl smart constructor.

Constructors

GetQueueUrl' 

Fields

  • queueOwnerAWSAccountId :: Maybe Text

    The account ID of the account that created the queue.

  • queueName :: Text

    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.

Instances

Instances details
Eq GetQueueUrl Source # 
Instance details

Defined in Amazonka.SQS.GetQueueUrl

Read GetQueueUrl Source # 
Instance details

Defined in Amazonka.SQS.GetQueueUrl

Show GetQueueUrl Source # 
Instance details

Defined in Amazonka.SQS.GetQueueUrl

Generic GetQueueUrl Source # 
Instance details

Defined in Amazonka.SQS.GetQueueUrl

Associated Types

type Rep GetQueueUrl :: Type -> Type #

NFData GetQueueUrl Source # 
Instance details

Defined in Amazonka.SQS.GetQueueUrl

Methods

rnf :: GetQueueUrl -> () #

Hashable GetQueueUrl Source # 
Instance details

Defined in Amazonka.SQS.GetQueueUrl

AWSRequest GetQueueUrl Source # 
Instance details

Defined in Amazonka.SQS.GetQueueUrl

Associated Types

type AWSResponse GetQueueUrl #

ToHeaders GetQueueUrl Source # 
Instance details

Defined in Amazonka.SQS.GetQueueUrl

Methods

toHeaders :: GetQueueUrl -> [Header] #

ToPath GetQueueUrl Source # 
Instance details

Defined in Amazonka.SQS.GetQueueUrl

ToQuery GetQueueUrl Source # 
Instance details

Defined in Amazonka.SQS.GetQueueUrl

type Rep GetQueueUrl Source # 
Instance details

Defined in Amazonka.SQS.GetQueueUrl

type Rep GetQueueUrl = D1 ('MetaData "GetQueueUrl" "Amazonka.SQS.GetQueueUrl" "libZSservicesZSamazonka-sqsZSamazonka-sqs" 'False) (C1 ('MetaCons "GetQueueUrl'" 'PrefixI 'True) (S1 ('MetaSel ('Just "queueOwnerAWSAccountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "queueName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetQueueUrl Source # 
Instance details

Defined in Amazonka.SQS.GetQueueUrl

newGetQueueUrl Source #

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.

Constructors

GetQueueUrlResponse' 

Fields

Instances

Instances details
Eq GetQueueUrlResponse Source # 
Instance details

Defined in Amazonka.SQS.GetQueueUrl

Read GetQueueUrlResponse Source # 
Instance details

Defined in Amazonka.SQS.GetQueueUrl

Show GetQueueUrlResponse Source # 
Instance details

Defined in Amazonka.SQS.GetQueueUrl

Generic GetQueueUrlResponse Source # 
Instance details

Defined in Amazonka.SQS.GetQueueUrl

Associated Types

type Rep GetQueueUrlResponse :: Type -> Type #

NFData GetQueueUrlResponse Source # 
Instance details

Defined in Amazonka.SQS.GetQueueUrl

Methods

rnf :: GetQueueUrlResponse -> () #

type Rep GetQueueUrlResponse Source # 
Instance details

Defined in Amazonka.SQS.GetQueueUrl

type Rep GetQueueUrlResponse = D1 ('MetaData "GetQueueUrlResponse" "Amazonka.SQS.GetQueueUrl" "libZSservicesZSamazonka-sqsZSamazonka-sqs" 'False) (C1 ('MetaCons "GetQueueUrlResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "queueUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetQueueUrlResponse Source #

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